Forum Discussion
Rank In PBI
HI , Anonymous
Thanks for your quick response!
According to your description, you only have one table and you want to show the highest content title. This is my understand and test data for your need:
If this , we canc reate a measure like this:
Measure =
var _cur_type= MAX('Table'[News Type])
var _t =CALCULATETABLE( SUMMARIZE('Table','Table'[News Type],'Table'[Content Title],"views" , SUM('Table'[Views])) , ALLEXCEPT('Table','Table'[News Type]))
return
IF( MAXX(topn(1,_t,[views],DESC) , [Content Title]) = MAX('Table'[Content Title]) , 1, -1)
Then we can put this measrue on the "Filter on this visual":
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi,
Thanks for replying...
This is not working
can we do it with rank function if possible?