Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello all,
I have 50 stacked bars (one for each state). I added "Product" to the Legend. Thus, each bar displays the sales grouped by product:
Example
I want to create a tooltip that displays the rank ordered by the total sales of each state. However, due to the legend, the tooltip returns three ranking positions per state: one rank for each product.
Is there a way to create a tooltip that sums by state and ignores the Legend?
Thanks in advance!
Solved! Go to Solution.
Hi @Anonymous ,
You could create a rank measure similar to below:
rank =
RANKX (
ALLSELECTED ( Data_3 ),
CALCULATE ( SUM ( Data_3[Value] ), ALLEXCEPT ( Data_3, Data_3[State] ) ),
,
ASC,
DENSE
)
Best regards,
Yuliana Gu
Hi @Anonymous ,
You could create a rank measure similar to below:
rank =
RANKX (
ALLSELECTED ( Data_3 ),
CALCULATE ( SUM ( Data_3[Value] ), ALLEXCEPT ( Data_3, Data_3[State] ) ),
,
ASC,
DENSE
)
Best regards,
Yuliana Gu
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |