Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
ilanbaruch
Specialist
Specialist

top 5 for the 3rd dim in a pivot

hi all

in my model i have a large pivot table..

as there is no option of dimension limit in a pivot i would want to present top 5 of the third dim in the pivot

and also to present 'Others'

any ideas ?

 

advanced thanks

Labels (2)
1 Solution

Accepted Solutions
Jacek
Educator-Ambassador
Educator-Ambassador

Example with calculated dimension for TOP 3

=if( aggr( NODISTINCT rank( sum(Data) ), Category1,Category2, Quarter) <=3 , Quarter)

+ option checked: suppress when value is null

2019-01-22_13h05_13.png

 

Result before (full data) and after (top 3):

2019-01-22_13h02_58.png

View solution in original post

5 Replies
Jacek
Educator-Ambassador
Educator-Ambassador

Example with calculated dimension for TOP 3

=if( aggr( NODISTINCT rank( sum(Data) ), Category1,Category2, Quarter) <=3 , Quarter)

+ option checked: suppress when value is null

2019-01-22_13h05_13.png

 

Result before (full data) and after (top 3):

2019-01-22_13h02_58.png

ilanbaruch
Specialist
Specialist
Author

Hi, Thank you !
ilanbaruch
Specialist
Specialist
Author

Hi Jacek,

 

in the same pivot i have another expression,   sum(Total <Category2> Data)  to calculate the relative for each row.

after the change, it doesn't retrieve the (Total) number for each row

maybe you you have an idea  ?

Jacek
Educator-Ambassador
Educator-Ambassador

please try: aggr(NODISTINCT sum(TOTAL <Category2> Data), Category1,Category2)
ilanbaruch
Specialist
Specialist
Author

Thank you very much