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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Avivek
Post Partisan
Post Partisan

The total in matrix is not correct

The total in the matrix is not showing the correct value, however when exported in excel it shows the correct value.

 

image.png

So in the image you can see the value against the person is shown as 5275 but the total shows 6575. Any idea why is this so?

1 ACCEPTED SOLUTION

Hi @rveerasamy ,

Please try to create a new measure as below, then drag the new created measure onto Matrix to replace the measure Sales Amount:

Measure =
SUMX (
    VALUES ( 'SALES'[PARENT ACC NAME] ),
    SUMX ( VALUES ( 'SALES'[FULL NAME] ), [Sales Amount ] )
)

If the above method is not working, please provide some sample data which is from the applied fields on Matrix and the table structures in your data model if the matrix involves multiple tables data. Thank you.

Best Regards

Rena

Community Support Team _ Rena
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

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hi @Avivek ,

Whether the field "Sales Amount" is from the returned values of a measure? You can refer the contents in following links to update the formula of your measure to get a correct total value.

Power BI: Totals Incorrect

Wrong Grand Totals in Power BI

In addition, you can also provide some sample data which is from the applied fields on Matrix and the formula of measure "Sales Amount", later we will help you correct it. Thank you.

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@Avivek , can you share the formula.

Sales Amount = IF(SELECTEDVALUE('REPORTING CURRENCY'[REPORTING CURRENCY],"Base")="Base",sum(SALES[BASE AMOUNT]),sum(SALES[ORIGINAL AMOUNT]))

Hi @rveerasamy ,

Please try to create a new measure as below, then drag the new created measure onto Matrix to replace the measure Sales Amount:

Measure =
SUMX (
    VALUES ( 'SALES'[PARENT ACC NAME] ),
    SUMX ( VALUES ( 'SALES'[FULL NAME] ), [Sales Amount ] )
)

If the above method is not working, please provide some sample data which is from the applied fields on Matrix and the table structures in your data model if the matrix involves multiple tables data. Thank you.

Best Regards

Rena

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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