Forum Discussion
top 10 rows put in table with filter
- 9 years ago
Hi ss1888,
I have tested this scenario using below sample data (I added an index column first). Please refer to the workarounds.
Create two measures.
category_ = IF ( CONTAINS ( TOPN ( 5, ALLSELECTED ( 'Top 10' ), 'Top 10'[Value], DESC ), 'Top 10'[Index], MAX ( 'Top 10'[Index] ) ), LASTNONBLANK ( 'Top 10'[Category], "" ), BLANK () ) Value_ = IF ( CONTAINS ( TOPN ( 5, ALLSELECTED ( 'Top 10' ), 'Top 10'[Value], DESC ), 'Top 10'[Index], MAX ( 'Top 10'[Index] ) ), SUM ( 'Top 10'[Value] ), BLANK () )Add column [Index], measure [category_] and measure [Value_] into a table visual.
If you have any question, please feel free to ask.
Thanks,
Yuliana Gu
Hi ss1888,
I have tested this scenario using below sample data (I added an index column first). Please refer to the workarounds.
Create two measures.
category_ =
IF (
CONTAINS (
TOPN ( 5, ALLSELECTED ( 'Top 10' ), 'Top 10'[Value], DESC ),
'Top 10'[Index], MAX ( 'Top 10'[Index] )
),
LASTNONBLANK ( 'Top 10'[Category], "" ),
BLANK ()
)
Value_ =
IF (
CONTAINS (
TOPN ( 5, ALLSELECTED ( 'Top 10' ), 'Top 10'[Value], DESC ),
'Top 10'[Index], MAX ( 'Top 10'[Index] )
),
SUM ( 'Top 10'[Value] ),
BLANK ()
)Add column [Index], measure [category_] and measure [Value_] into a table visual.
If you have any question, please feel free to ask.
Thanks,
Yuliana Gu
Hi v-yulgu-msft,
Need your help in solving this - Display top 5 values based on three slicers ( Collection, Region and Month) and the data is in Table visualization.
Based on the slicer selection it has to display top 5 Revenue values in Table visual.
I tried creating Index columns and other measures and it didn't work for me. Appreciate your help!
Thank you!
Kate