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
spaceman127
Resolver I
Resolver I

Question about Power Bi Dekstop incorrect total value

Hello Community,

I have a question and a problem with my calculation when I filter

 

 

2023-11-10 13_53_07-Dashboard - Power BI Desktop.png

 

The total values are unfortunately not correct. Cost should be 20314,20 Euro and costaggretierteuro 14175,75 Euro.

 

I have the following tables.

 

1 Table with Valuenames

 

2 fact tables with cost (as a total) and the other fact table (costaggregierteuro (as a total).

I filter by the valuenames and the problem only occurs when I select all valuenames or 2 or more. If I select only one value, the calculation is correct.

If I execute all this in T-SQL then I get the correct values.


What am I doing wrong?

If you need more information, please ask.

 

Many thanks in advance.

 

Spaceman127

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @spaceman127 ,

You can create another two measures as below to get it:

Sum of Cost= SUM('facttable1'[cost])
New_sumofcost=sumx(values('dimAzTags'[Valuename]),[Sum of Cost])

 

Sum of costaggregierteuro= SUM('facttable1'[costaggregierteuro])
New_sumofcostagg=sumx(values('dimAzTags'[Valuename]),[Sum of costaggregierteuro])

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

Best Regards

View solution in original post

4 REPLIES 4
sanalytics
Super User
Super User

Hello @spaceman127 

 

You can Try this Measure for cost

 

Cost = Sumx( YourTable[ValueName],[Cost] )

It will great if you can share the pbix file.

 

Hope it will help you.

 

regards

sanalytics

If it is your solution then please like and accept it as solution

 

Thank you for your answer, I can't share the pbix because it contains data that I can't pass on.

I have taken a screenshot of the data model.

2023-11-10 16_23_09-Test - Power BI Desktop.png

Sorry for the inconvenience.

 

I have now extended the data model as it actually looks now.

I practically filter the value name (dimAzTags) and then get the resources with the costs that have a tag.

My assumption is that the relationship between the dimAzTags table and the resource table is the problem.

Unfortunately I can't solve this easily.

It would be better to adjust the measure if that is possible.

Does that help?

 

Thanks in advance.

 

spaceman127

 

Anonymous
Not applicable

Hi @spaceman127 ,

You can create another two measures as below to get it:

Sum of Cost= SUM('facttable1'[cost])
New_sumofcost=sumx(values('dimAzTags'[Valuename]),[Sum of Cost])

 

Sum of costaggregierteuro= SUM('facttable1'[costaggregierteuro])
New_sumofcostagg=sumx(values('dimAzTags'[Valuename]),[Sum of costaggregierteuro])

In addition, you can refer the following links to try to solve your problem...

Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand

Dax for Power BI: Fixing Incorrect Measure Totals

Best Regards

Hi,

 

Thank you for your help.
This is the solution to my problem.

 

Best Regards

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