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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!