The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |