Forum Discussion
Top N shows more rows than expected
- Anonymous3 years ago
Hi N4gash ,
Please try below steps:
1. below is my test tableTable:
2. create measure with below dax formula
Sum_winners = SUM('Table'[Winners])Measure = VAR tmp = CALCULATETABLE ( VALUES ( 'Table'[Name] ), TOPN ( 10, ALL ( 'Table' ), [Sum_winners], DESC ) ) VAR _name = SELECTEDVALUE ( 'Table'[Name] ) RETURN IF ( _name IN tmp, 1 )3. add a teable visual with fields and measure, add a measure to visual filter pane and apply
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi N4gash ,
Please try below steps:
1. below is my test table
Table:
2. create measure with below dax formula
Sum_winners = SUM('Table'[Winners])Measure =
VAR tmp =
CALCULATETABLE (
VALUES ( 'Table'[Name] ),
TOPN ( 10, ALL ( 'Table' ), [Sum_winners], DESC )
)
VAR _name =
SELECTEDVALUE ( 'Table'[Name] )
RETURN
IF ( _name IN tmp, 1 )
3. add a teable visual with fields and measure, add a measure to visual filter pane and apply
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.