Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Im trying to get ranks based on the views count on reports in workspaces.I tried so many ways and can someone help me to get the ranks based on the view count.I got views,
Solved! Go to Solution.
Hi @Anonymous ,
First, please update the formula of your measure [View count] as below:
View count= CALCULATE(SUM(Usage[viewS])) |
Then create a measure as below:
Rank = IF([View count]=0,BLANK(),RANKX(ALLSELECTED('Usage'[Activity]),[View count],,DESC,Dense))
If the above one is not what you want, please provide some sample and your expected result with sample or screenshot. Thank you.
Best Regards
Hi @Anonymous ,
First, please update the formula of your measure [View count] as below:
View count= CALCULATE(SUM(Usage[viewS])) |
Then create a measure as below:
Rank = IF([View count]=0,BLANK(),RANKX(ALLSELECTED('Usage'[Activity]),[View count],,DESC,Dense))
If the above one is not what you want, please provide some sample and your expected result with sample or screenshot. Thank you.
Best Regards
@Anonymous , First you have return blank, as 0 will also count 1
viewS = IF(Usage[Activity]="ViewReport"|| Usage[Activity]="ViewDashboard",1,blank)
This should count correct now
View count=
CALCULATE(COUNT(Usage[viewS]))
for rank
rankx(Allselected(Usage), [View count])
or refer
For Rank Refer to these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
My Video : https://www.youtube.com/watch?v=DZb_6j6WuZ0
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |