Forum Discussion
Anonymous
5 years agoNot applicable
Dynamic TopN filter in Power BI
I have table contain only one column Title. Column values: Title Word 1 Word 4 Word 3 Word 1 Word 4 Word 2 How filter above table by dynamic TopN?
amitchandak
Super User
5 years agoAnonymous , Try like
Top 10 = CALCULATE([TotalTitle],TOPN(10,all('Content Catalog Search Result Report'[Title]),[TotalTitle],DESC),VALUES('Content Catalog Search Result Report'[Title]))
Here 10 can be variable or what if
Anonymous
5 years agoNot applicable
Thank you amitchandak . But gives me duplicated Rank value for each duplicated count, see attach image.ank v
- Anonymous5 years agoNot applicable
Hi Anonymous,
Any rules that you want to rank your field values? If you only want to choose rows based on it row_number, I'd like to suggest you add an index column to your table. Then you can filter on the index field values to show correspond records.
Create Index Columns Using Power Query
Regards,Xiaoxin Sheng