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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
vat2do
Helper II
Helper II

Correct subtotals but incorrect grand total

HI experts,

I am facing an issue with the grand total in a matrix visual, I already use SUMX and Summarize functions to correct my subtotals of the rows, but again the Grand total is wrong . it should be 3263 and not 3254.

vat2do_0-1720519450606.png

 

Can someone provide a work around to get a gorrect GRAND TOTAL in a matrix. 

Thanks in advance

1 ACCEPTED SOLUTION

Hi,

I am not sure if I understood your question correctly, but please try something like below if it suits your requirement.

 

No. of companies =
SUMX (
    SUMMARIZE ( 'Sample Data', 'Sample Data'[Region], 'Sample Data'[Area ] ),
    CALCULATE ( DISTINCTCOUNT ( 'Sample Data'[Company ] ) )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

5 REPLIES 5
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Thanks @lbendlin for sharing the guidelines.

 

Below mentioned is the link for sample pbx file.

https://we.tl/t-M5aoGN84Tg

 

I am having the same issue of getting incorrect sub totals and overall Grand total at the Area and Region levels. Will be thankful to have a solution inorder to get the correct subtotals and grand total based on the sample file provided.

Regards

@rajendraongole1 , @Jihwan_Kim , @mark_endicott 

 

Dear Experts,

Appreciate to have acorrect DAX measure to be used inorder to get correct subtotals and grand totals in matrix view, PBX file is already attached with below link.

https://we.tl/t-M5aoGN84Tg

Thanks in advance

Anonymous
Not applicable

Hi @vat2do 

 

Thanks for the reply from @lbendlin and @Jihwan_Kim .

 

@vat2do , did @Jihwan_Kim ‘s answer help you? If so, please accept it as a solution. This will be of great help to other users who have similar problems as you. Thank you!

 

If you still have questions, please let us know.

 

Best Regards,
Yulia Xu

Hi,

I am not sure if I understood your question correctly, but please try something like below if it suits your requirement.

 

No. of companies =
SUMX (
    SUMMARIZE ( 'Sample Data', 'Sample Data'[Region], 'Sample Data'[Area ] ),
    CALCULATE ( DISTINCTCOUNT ( 'Sample Data'[Company ] ) )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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