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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
primolee
Helper V
Helper V

Subtotal error

Hello everyone,

 

After all this time I use BI, this is the first time seeing such weird thing...

 

Subtotal Error.jpg

 

Left side is my data, there are only 3 rows and it is integer type.  Right side is report view, and as you see subtotal is 12599999.  I tried viewing min and max value, they are all the same 4200000.  Why is this happening?  There is no calculation in report view, calculations are done in Power Query and it is 100% integer type.

 

Is there a way to fix this? XDDD

 

Thank you!

 

Best regards,

David

1 ACCEPTED SOLUTION

Hi @primolee ,

 

v-lionel-msft_0-1595924955143.png

I have not reproduced your problem, but I think you have two ways to solve this problem now.
1. Check the data model and recreate the table relationships.
2. Create a measure and add it to the table visual.

Dealing with Measure Totals 

 

Do you mind sharing your .pbix file?

 

Best regards,
Lionel Chen

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

8 REPLIES 8
amitchandak
Super User
Super User

@primolee , what is the data type. If it decimal change t whole number and check

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

It is integer (whole number), and there is no decimal at all.  Original data came from Excel and it is 4200000 in each row.

harshnathani
Community Champion
Community Champion

Hi @primolee ,

 

Do you have the relationship established with Date Table.

 

I think the relationship is missing.

 

Regards,

Harsh Nathani

Hello @harshnathani ,

 

Funny, there is no date column in this table.  However, it has a relationship link to another table with Date column.

 

When I remove the relationship, subtotal is correct.  However, this relationship is a must so I have to keep the relationship.

 

You can think of this table as a monthly budget table.  I have another table containing daily spending.  I am linking these two tables using Year/Month.

 

How should I solve this?  Thank you.

 

Best regards,

David

Hi @primolee ,

 

Which table is the Year/Month Colum which you have shown in the screenshot above. 

 

Can you share your .pbix file.

 

Regards,

Harsh Nathani

Year/Month in the image is from monthly budget table.  And I have another table just for Year/Month.

 

Monthly Budget

       |    <- 1 to 1, Bi-directional

Year/Month

       |    <- 1 to N, Bi-directional

Daily Spending

 

In the image above, I am pulling both Year/Month and Est. Imp. Per Month from the same table "monthly budget" and there is no other column from other tables.

 

Just now, I changed the second relationship to single-direction, and the subtotal is correct...  I don't understand...  Even if I don't use any columns from Daily Spending table or Year/Month table, subtotal is wrong...  Shouldn't subtotal simply be adding all rows together?

 

And here is another problem:

Subtotal Error 2.jpg Subtotal Error 3.jpg

 

I used Buget from Cue Table as my Max value and spending from daily spending as value, max value shown is still 12599999.

 

This is simply driving me nuts... XD

Hi @primolee ,

 

v-lionel-msft_0-1595924955143.png

I have not reproduced your problem, but I think you have two ways to solve this problem now.
1. Check the data model and recreate the table relationships.
2. Create a measure and add it to the table visual.

Dealing with Measure Totals 

 

Do you mind sharing your .pbix file?

 

Best regards,
Lionel Chen

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

Hello @v-lionel-msft 

 

Because there are many sensitive data, I tried to recreate the same scenario with very simplified data.  However, everything is perfect and I cannot recreate the error that I encountered previously.  Maybe because there are more relationships involved in my original case.

 

Let me try to play around with the data.

 

Thank you so much for your help!

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.