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.
Dear Community,
I have an issue with my measure, that shows the percentage of the hours written by employees.
On the cards, there are 5 measures showing the proportional written hours by categorie volum1-volum5
On the right side, the chart should show the exact same measures in a cummulative way, using the sum of all 5 with this summarizing measure, since its not possible to place 5 measures or columns for the y-Axis:
Hi, I have to give you some more context about my data Modell
My Source table looks almost like the one you shared @rohit1991, thanks for that.
In addition it has a cummulative YTD Capacity for each employee for each row of that column and anotherone with a proportional capacity per month per employee.
Therefore I was able to write the following measure for each categorized hours written. E.g. that would be the Measure code for Visual_Volum1, that would be the same approach for the other Volumes. Here is some Code @zenisekd :
VISUAL_Volum1 =
VAR Prod_hours =
CALCULATE(
SUM(Table[hours]),
F1_Final[Category] IN {
"Volum1" //Filter for Hours, that are categorized in Volum1
}
)
// Calculation of the entire Monthly capacity
VAR DistributionCapacity =
SUMX(
SUMMARIZE(
Table,
Table[PersNr], // Group by PersNr, to summarize the Capacity per employee
Table [Month],
"CapacityperMonth",
CALCULATE(
// Selects a distinct value of Monthly capacity per employee
FIRSTNONBLANK(Table [capa_per_month], 1)
)
),
[CapacityperMonth]
)
// Divide the Prod_hours with the correct summarized Monthly capacity
RETURN DIVIDE(Prod_hours, DistributionCapacity, 0)
Hi @Luggas
Reason:
That’s why, when you add up the five measures like this:
Visual = [VISUAL_Volum1] + [VISUAL_Volum2] + [VISUAL_Volum3] + [VISUAL_Volum4] + [VISUAL_Volum5]
It recalculates according to each context - so the total doesn’t match.
Fix:
If you want the same percentage across visuals, calculate each measure using the same denominator and same filter context (by using functions like CALCULATE, REMOVEFILTERS, or ALLSELECTED).
Could you please try below steps:
1. Sample data that I used to solve the problem:
2. Create two measures:
Total % of Hours =
DIVIDE(
SUM('Sample Data'[Hours]),
CALCULATE(SUM('Sample Data'[Hours]), ALL('Sample Data'))
)
Visual (All Categories) =
CALCULATE(
[Total % of Hours],
KEEPFILTERS('Sample Data'[Category] IN {"Volum1","Volum2","Volum3","Volum4","Volum5"})
)
Could you share your dax code with us? My money is on that.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.