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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
aalok29
Regular Visitor

Need Matrix subtotal to equal the sum of the row totals - and NOT be consistent with formula

Hey guys, in this matrix, I want "Discipline Projected Revenue" to be equal to the sum of the rows under it, for eg,
Discipline Projected Revenue (at Discipline level) = $300 + $600 + ... = $3,733.33 instead of the displayed $522.94

 

The formula to calculate Discipline Projected Revenue for the individual projects is as follows:
Discipline Projected Revenue (at Project level) = Discipline Net Fee % of Total * Project Amount

This is correct at project level. But I want the subtotal to be the sum of the Discipline Projected Revenue of the projects, instead of being consistent with the formula.

Error.PNG
Here are snippets of all the measure formulas:
2.PNG

 

Here are the tables:
3.PNG

 

4.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @aalok29 

You can refer to the following measure

Discipline Projected Revenue (at Project level) =
IF (
    ISINSCOPE ( 'Projection 1'[Project_Name] ),
    [Discipline Net Free % of Total] * [Project Amount],
    SUMX (
        VALUES ( 'Projection 1'[Project_Name] ),
        [Discipline Net Free % of Total] * [Project Amount]
    )
)

Output

vxinruzhumsft_0-1681869591335.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @aalok29 

You can refer to the following measure

Discipline Projected Revenue (at Project level) =
IF (
    ISINSCOPE ( 'Projection 1'[Project_Name] ),
    [Discipline Net Free % of Total] * [Project Amount],
    SUMX (
        VALUES ( 'Projection 1'[Project_Name] ),
        [Discipline Net Free % of Total] * [Project Amount]
    )
)

Output

vxinruzhumsft_0-1681869591335.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

You need to use aggregation functions like SUMX.

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors