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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello everyone,
I'm working with two tables:
1) or_main - contains a date field [DATE_refer] with a format "yyyymm" and [STATUS] field ("abierto", "notificado","no notificado").
2)or_operations - contains a measure QTY base on COUNTROWS()
I want to show, for each month (e.g., "202412"), how many operations fall under each STATUS and display this in a bar chart, such that each month's bar totals 100%. However , when I set up the bar chart to show percentages, it shows the percentages of the grand total instead of 100% per month
QUESTION:
Thanks in advance for your help!
TotalOperationsPerMonth = CALCULATE( [QTY], ALLEXCEPT(or_main, or_main[DATE_refer]) )
PercentagePerStatus = DIVIDE( [QTY], [TotalOperationsPerMonth], 0 )
If this post helps, please accept it as the solution to help others find it more quickly.
Best Regards,
Harsh Sathwara.
TotalOperationsPerMonth = CALCULATE( [QTY], ALLEXCEPT(or_main, or_main[DATE_refer]) )
PercentagePerStatus = DIVIDE( [QTY], [TotalOperationsPerMonth], 0 )
If this post helps, please accept it as the solution to help others find it more quickly.
Best Regards,
Harsh Sathwara.
@Anonymous , You will need to create a DAX measure that calculates the percentage of each STATUS for each month. Here’s how you can do it:
QTY = COUNTROWS(or_operations)
Create a measure to calculate the total operations for each month:
DAX
TotalOperationsPerMonth =
CALCULATE(
COUNTROWS(or_operations),
ALLEXCEPT(or_main, or_main[DATE_refer])
)
Create a measure to calculate the percentage of each STATUS for each month:
DAX
PercentagePerStatus =
DIVIDE(
COUNTROWS(or_operations),
CALCULATE(
COUNTROWS(or_operations),
ALLEXCEPT(or_main, or_main[DATE_refer])
),
0
)
Configure your bar chart:
X-axis: Set to or_main[DATE_refer] and ensure it is formatted to show the month.
Y-axis: Use the PercentagePerStatus measure.
Legend: Set to or_main[STATUS].
Proud to be a Super User! |
|
Hi @bhanu_gautam,
Thank you for the detailed explanation. I tried following the steps you outlined to calculate the percentage of each STATUS by month, but I’m still having trouble getting the bar chart to reflect the total percentage correctly.
The issue I’m facing is that I can’t seem to get the percentages to add up to 100% for each month. The chart displays individual STATUS values, but the sum of the percentages for each month doesn’t reach 100%.
Here’s what I have done so far:
1. I created the TotalOperationsPerMonth measure as you suggested:
TotalOperationsPerMonth =
CALCULATE(
COUNTROWS(or_operations),
ALLEXCEPT(or_main, or_main[DATE_refer])
)
2. Then, I implemented the PercentagePerStatus measure as follows:
PercentagePerStatus =
DIVIDE(
COUNTROWS(or_operations),
CALCULATE(
COUNTROWS(or_operations),
ALLEXCEPT(or_main, or_main[DATE_refer])
),
0
)
3. I configured the chart:
• X-axis: or_main[DATE_refer] (formatted to show the month).
• Y-axis: PercentagePerStatus.
• Legend: or_main[STATUS].
However, the percentage per month isn’t distributed correctly. Could there be an additional configuration or measure I’m missing to ensure the percentages sum to 100% for each month?
I’d really appreciate any suggestions or insights you can provide.
Best regards,
Flor
Let me know if you need further adjustments!
Hi @Anonymous ,hello bhanu_gautam, thank you for your prompt reply!
What's the relationship between or_main and or_operations?
If possible, please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.