Power Pivot - Show top 3 values ang group rest.

misqadv

New Member
Joined
Jan 9, 2018
Messages
4
Hi,


Im looking for the way to show in pivot table top 3 max values (i.e. top 3 countries with biggest revenue) and group other countries in one cell. This thing will be used in monthly reports, so it will be good to make it atomatic. Is it possiable?
I will be very grateful for all your help.


BR,
Michal
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Not enough info to help. Need to know what inputs and desired output looks like. Or a sample file to download.
 
Upvote 0
kQfcrm
Hi,
Ok I will post a sample file. This is workarund that I prepared. This is a only file I didn't implement a PowerPivot, All things goes to that can I prepare the same formula to count 3 biggest countries each month and group rest of them in one value. I've added a screen shot with pivot table source data, results and formulas used to get results --> https://ibb.co/kQfcrm .

Thanks for any help.

BR,
Michał
kQfcrm
 
Upvote 0
Ok, problem solved. Maybe some one will use my formulas (all in calculation fields in manage mode):

1. Country Rank:=RANKX(ALL(Entities
Code:
);[Paid not on time amount])
2. Paid not on time amount:=SUM('Paid invoices'[Paid on time(2)])
3. Top3v2:=IF (    [Country Rank] <= 3;
    [Paid not on time amount];
    IF (
        HASONEVALUE ( Entities[Code] );
        IF (
            VALUES ( Entities[Code] ) = "Other";
            SUMX (
                TOPN (
                    COUNTROWS ( ALL ( Entities[Code] ) ) - 3;
                    ALL ( Entities[Code] );
                    [Paid not on time amount]; 1
                );
                [Paid not on time amount]
            )
        )
    )
)
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top