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 all,
I have a scatter chart and would like to create a measure to calculate the ranking for each dot. Y axis is [C] and x axis is [YoY change]. While I would like to calculate a YoY change, I did not create a relationship between a 'year'[year] and 'C'[year]. And the legend is classified by another table 'Provider list'[class], which has a relationship with 'C' to connect the Provider information. I got wrong results for that, obviously the ranking and the number of total provider are wrong.
This is the slicer:
Again, please note the 'Year'[Year] does not have a relationship with the 'C'[Year].
This is the ranking DAX which does not work:
Solved! Go to Solution.
Thank you. I resolved the issue on my own. It turns out I had set the wrong ALLSELECTED target table. The correct DAX formula should be:
RankingLabel_C = RANKX(ALLSELECTED('Provider list'), [C],,DESC) & "/" & COUNTX(ALLSELECTED('Provider list'), [C])
Thank you. I resolved the issue on my own. It turns out I had set the wrong ALLSELECTED target table. The correct DAX formula should be:
RankingLabel_C = RANKX(ALLSELECTED('Provider list'), [C],,DESC) & "/" & COUNTX(ALLSELECTED('Provider list'), [C])
They recently added the option for legend sorting. So this might be possible.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
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 |
---|---|
104 | |
96 | |
80 | |
67 | |
62 |
User | Count |
---|---|
138 | |
107 | |
104 | |
82 | |
63 |