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
Kurt4597
Helper I
Helper I

Total Incorrect

Hi all,

 

Currently experiencing an issue that I have hit a wall on. Would really appeciate it if anyone could help me with a solution

 

Kurt4597_0-1655135373878.png

I have the following Table, each of these columns has been pulled in from a different table.
MTD final sales = 

'MTD Forecast'[FinalSales] + 'MTD Forecast'[MTDsales Except Last week]
 
CPA = Pulled from a seperate static table 
Kurt4597_1-1655135656996.png
 
MTD Revenue = 
MTD Revenue = 'MTD Forecast'[MTD Final Sales] * average(CPA[CPA])
(Average was used for CPA here as the first table is grouped by provider name)
 
The issue is the total for the MTD Revenue is incorrect. I would like it to be £10,050 + £1,768 + £128 = £11,946. However, PowerBI is calculating £12,799 which I believe is the total sales * an average of the CPA.
 
Any suggestions / advice would be much appreciated. 
Thanks All
1 ACCEPTED SOLUTION

Hi @Kurt4597 ,

I updated your sample pbix file(see attachment), please check if that is what you want. Please create another new measure as below to replace the measure [Revenue] on the visual...

Measure = SUMX ( VALUES ( 'Master Filter'[Provider Name] ), [Revenue] )

yingyinr_0-1655804389925.png

Best Regards

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 @Kurt4597 ,

Please try to create another new measure as below and put it on the visual to replace the original measure [MTD Revenue] . Later check if you can get the correct total values...

Measure = SUMX ( VALUES ( 'MTD Forecast'[Provider Name] ), [MTD Revenue] )

yingyinr_0-1655347689817.png

Incorrect total values fix methods:

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

Dax for Power BI: Fixing Incorrect Measure Totals

If the above one can't help you get the desired result, please provide some sample data in your tables 'MTD Forecast' and 'CPA' (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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.

Thank you for the response yingyinr, unforutatenly the measure you suggested does not work. I Have attatched a sample file to better explain the issue. Many Thanks! https://www.dropbox.com/s/95pgkz6k1np28qr/Sample%20File.pbix?dl=0

Hi @Kurt4597 ,

I updated your sample pbix file(see attachment), please check if that is what you want. Please create another new measure as below to replace the measure [Revenue] on the visual...

Measure = SUMX ( VALUES ( 'Master Filter'[Provider Name] ), [Revenue] )

yingyinr_0-1655804389925.png

Best Regards

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.
Kurt4597
Helper I
Helper I

Any help would be greatly appreciated 

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.