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
epelton
Frequent Visitor

Incorrect Totals in Matrix

In the screenshot, you can see on line 9 the formula that returns a correct  value. The sum of the values in the table however is incorrect. So each row value for Project Target Profit is correct, but the total is not. On line ten, the values are hardcoded, which results in a correct total for those hard coded values. Also, if I filter to return only one row, the total is then correct.

Any guesses on why the total doesn't match the sum of the 3 rows for Project Target Profit?

epelton_0-1682026750057.png

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @epelton ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1683091227886.png

Please try:

Measure =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[ID],
        'Table'[Booked Net Rev Total'],
        'Table'[Target Multipl Min']
    ),
    IF (
        [Target Multipl Min] = 0,
        BLANK (),
        [Booked Net Rev Total] - ( [Booked Net Rev Total] / [Target Multipl Min] ) - ( [Booked Net Rev Total] / [Target Multipl Min] ) * 1.65
    )
)

Final output:

vjianbolimsft_1-1683091255652.png

Best Regards,

Jianbo Li

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

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @epelton ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1683091227886.png

Please try:

Measure =
SUMX (
    SUMMARIZE (
        'Table',
        'Table'[ID],
        'Table'[Booked Net Rev Total'],
        'Table'[Target Multipl Min']
    ),
    IF (
        [Target Multipl Min] = 0,
        BLANK (),
        [Booked Net Rev Total] - ( [Booked Net Rev Total] / [Target Multipl Min] ) - ( [Booked Net Rev Total] / [Target Multipl Min] ) * 1.65
    )
)

Final output:

vjianbolimsft_1-1683091255652.png

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
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.