Forum Discussion
Dynamic TOP N list
- 6 years ago
Hi alextarki ,
>>The filter should be by company rather then by sales measure
Do you mean to show the data of the top n companies. And you need to add an index column for it:
Create a topn table for slicer:
Create a measure for filter on the visual:
Measure = VAR N = IF ( HASONEVALUE ( 'TopN'[top] ), SELECTEDVALUE ( 'TopN'[top] ), 3 ) RETURN IF ( MAX ( SALES[Index] ) < N, 1, 0 )For more details ,please refer to https://community.powerbi.com/t5/Desktop/Dynamic-TopN-reports-in-Power-BI/td-p/122091
Best Regards,
Dedmon Dai
Thanks
The filter should be by company rather then by sales measure
IF I select 30 then filter should deliver the list of 30 companies
Hi alextarki ,
>>The filter should be by company rather then by sales measure
Do you mean to show the data of the top n companies. And you need to add an index column for it:
Create a topn table for slicer:
Create a measure for filter on the visual:
Measure =
VAR N =
IF ( HASONEVALUE ( 'TopN'[top] ), SELECTEDVALUE ( 'TopN'[top] ), 3 )
RETURN
IF ( MAX ( SALES[Index] ) < N, 1, 0 )
For more details ,please refer to https://community.powerbi.com/t5/Desktop/Dynamic-TopN-reports-in-Power-BI/td-p/122091
Best Regards,
Dedmon Dai