Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Same denominator for different row in Matrix Table

anon__19_0-1681892447620.png

Hi guys, need help on this.

I want to get the breakdown of leave percentage for mulltiple departments. However, the denominator changes after expanding to leave categories. The denominator should be static which is the total hours of the department per day.

Below is expected result:

anon__19_1-1681893073106.png

 

_Leave% =

Var Leave_ = CALCULATE(SUM(Shrinkage[Planned Total]),FILTER(Shrinkage,Shrinkage[Shrink Type] = "Planned"))

Var unLeave_ = CALCULATE(SUM(Shrinkage[Unplanned Total]),FILTER(Shrinkage,Shrinkage[Shrink Type] = "Unplanned"))

VAR denom = [_Activity_Dur]

Return

    ((Leave_ + unLeave_) / denom)



0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.