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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-xinruzhu-msft
Community Support
Community Support

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
v-xinruzhu-msft
Community Support
Community Support

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.