Forum Discussion
Rank In PBI
Hey Hi,
Thanks alot for replying to all the help
I will place the example data from excel here
Here I just want to see content title which are having highest views
For each news type I want to see content title which are having highest views
| News Type | Content Title | Views |
| Global | team to lead Company through increasingly challenging external environment | 11,900 |
| Region | Competitors are coming | 4,596 |
| Region | Team at exhibition | 3,794 |
| Global | New Iconic | 3538 |
| Loaclity | Solution for disabilities | 1,596 |
For Global, Region and Locality I want to see only top view content title
And I just have only one table that is Fact tavle no other tables are there
can you please help??
Thanks in advance
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