Forum Discussion
Rank In PBI
Hi,
Thanks a lot
In the same way I used MINX function to show minimum viewwd content title, but it has shown same views for both Highest and lowest viewed content titles
Please help on this
Thanks
Hi , Anonymous
Thanks for your quick response!According to your description, you want to show the last1 content title , if this , you can replace the DESC to ASC to check if it can meet your need.
Measure 2 = MAXX( TOPN(1, ADDCOLUMNS( CALCULATETABLE( SUMMARIZE('Dim Content','Dim Content'[ID],'Dim Content'[Content tiltle]) , ALLEXCEPT('Dim Content','Dim Content'[News Type]) ) , "Views" , CALCULATE(SUM('Fact User'[Views]))) ,[Views] ,ASC) , [Content tiltle])
The MAXX() in this dax code just get the text in the table got from TOPN() function.So when you replace the MAXX() to MINX() , it will show the same in your visual.
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