Forum Discussion
alextarki
6 years agoHelper I
Dynamic TOP N list
HI I have investigated multiple demos and didnt find the answer for the following question : Top N - How to enter dynamicly select the list of the first N records as the filter TOPN is hardcode...
- 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
nandukrishnavs
6 years agoCommunity Champion
Refer to this similar post https://community.powerbi.com/t5/Desktop/Top-n-Filter-with-Dynamic-fields/m-p/901378
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
- alextarki6 years agoHelper I
Unfortunately, this topic is not related to my point I need dynamic list of value : I select TOP 10 it shows 10 records ,
I select TOP 20 - it shows 20 records