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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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