The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I'd like to create a dashboard with a few slicers that filter the visuals.
However, I'd also like to display a text that shows me the rank of the group selected in the slicer among the general population.
Example
Suppose I have this data: 3 columns from the data source and an additional calculated measure
Company | Share price | EPS | PE Ratio (calculated: [Share price] / [EPS]) |
Intel | 52.43 | 4.43 | 11.84 |
IBM | 139.44 | 9.50 | 14.68 |
Oracle | 55.41 | 2.79 | 19.86 |
I have a single-selection slicer that selects the company.
Suppose I have "Intel" selected in the slicer.
Then, I'd like to have text that says "Rank: 1 out of 3".
If I change selection to "Oracle", I'd like to have the text change to "Rank: 3 out of 3".
My question here is how can I neutralize the slicer's effect on the grand total?
I'd like to show the "count(distinct company)" (in SQL terms) calculated on the entire population, and a similar consideration applies on the ranking.
I suppose there's a DAX solution, but I'm not too familiar with it yet...
Thanks,
David
You can create a calculate column using DAX below:
Rank = RANKX ( Table, [PE Ratio],, desc, DENSE )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Suppose I have this data: 3 columns from the data source and an additional calculated measure
Company Share price EPS PE Ratio (calculated: [Share price] / [EPS]) Intel 52.43 4.43 11.84 IBM 139.44 9.50 14.68 Oracle 55.41 2.79 19.86
I have a single-selection slicer that selects the company.
Suppose I have "Intel" selected in the slicer.
Then, I'd like to have text that says "Rank: 1 out of 3".
If I change selection to "Oracle", I'd like to have the text change to "Rank: 3 out of 3".
My question here is how can I neutralize the slicer's effect on the grand total?
I'd like to show the "count(distinct company)" (in SQL terms) calculated on the entire population, and a similar consideration applies on the ranking.
In this example, which column do you want to implement the rank measure on? Where is the population field?
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I'd like to display the rank of Company by 'PE Ratio' column.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
82 | |
77 | |
46 | |
39 |
User | Count |
---|---|
137 | |
108 | |
69 | |
64 | |
53 |