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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello, I'm tying to find a way to calculate percentages with multiple categories (see below) without using the option "show value as percentage". With this option, when we apply filters, the percentages change and I want them to stay the same.
I need a measure to do it but I can't find the solution.
Thank you
Solved! Go to Solution.
I used this measure and it worked. Thank you
Measure = COUNT(Table1[Date])/CALCULATE(COUNT(Table1[Date]);ALL(Table1[Category]))
I used this measure and it worked. Thank you
Measure = COUNT(Table1[Date])/CALCULATE(COUNT(Table1[Date]);ALL(Table1[Category]))
You can use a measure like this to get your result. Update it with your measure and the Month column used in your visual.
Pct All Months =
VAR vThisMonth = [Your Measure]
VAR vAllMonths =
CALCULATE (
[Your Measure],
ALLSELECTED ( Date[Month] )
)
RETURN
DIVIDE (
vThisMonth,
vAllMonths
)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.