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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Incorrect total displayed

Hello! 🙂

 

I need your help and would appreciate it.

First of all I show you the data model: (not the whole model, just the part we are interested in):

sasergiu96_0-1665510136376.png

The problem is that the total is not displayed correctly. (If we sum up all the rows, we will see that it exceeds the total displayed at the table bottom).

sasergiu96_1-1665510399446.png

 

I'm using the measure:  

 

Loans = SUM(CirculationFact[Count_Checkout])

 

Can someone explain why this is happening and how I can fix it?

 

Thanks 🙂

1 ACCEPTED SOLUTION
Anonymous
Not applicable

It works now. I replaced the: SUM(CirculationFact[Count_Checkout]) with [Loans] measure in the SUMX and now it's ok.

Now the correct measure is: 

NEW_LOANS = SUMX(SUMMARIZE(BibliographicSubjectDim,BibliographicSubjectDim[Name]), [Loans])

 Thank you for you help.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Can someone explain me why does a simple SUM not work?
Is it somehow implacable that I have that bridge table in the data model?

sasergiu96_0-1665732964943.png

Here I attached the pbix file: https://files.fm/f/emwb7m5fy

 

Anonymous
Not applicable

Hi @Anonymous ,

 

According to your data model, I know that "BibliographicSubjectDim" and "CirculationFact" tables are not connected directly, and both tables are many side in their relationship. So in your SUM calculation you will get wrong subtotal. You need to use SUMX() to sum the measure based on the column in "BibliographicSubjectDim".

 

Best Regards,
Rico Zhou

 

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

HoangHugo
Solution Specialist
Solution Specialist

Hi, total row be calculated base on underlying data, in your case, watn to sum all row of table, try this one

Loans = SUMX(SUMMARIE([Name]), SUM(CirculationFact[Count_Checkout]))

 

Anonymous
Not applicable

It works now. I replaced the: SUM(CirculationFact[Count_Checkout]) with [Loans] measure in the SUMX and now it's ok.

Now the correct measure is: 

NEW_LOANS = SUMX(SUMMARIZE(BibliographicSubjectDim,BibliographicSubjectDim[Name]), [Loans])

 Thank you for you help.

Anonymous
Not applicable

Hi @HoangHugo,

Thank you for your response. Unfortunately it doesn't work ok. The amount now is much higher than expected.
I used:  

 

Loans2 = SUMX(SUMMARIZE(BibliographicSubjectDim,BibliographicSubjectDim[Name]), SUM(CirculationFact[Count_Checkout]))

Do you have another idea?

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors