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

Correct total sum of Actual and Budget

Hi all,

 

I want to correctly sum actuals and budget, I have a submission datetable and a value datetable.
So for example when I choose 2021 February as submission Year/month I see all actual data for JAN and FEB 2021, and all other months are Budget.
When I select the first 6 months of 2021 (JAN to JUN) within the value datetable I see six months of data, 2 actuals and 4 budget.

I created a measure to construct this, and this perfectly works for the individual months. However the total is incorrect, this only shows the sum of budget months. 

 

Important: currenctly the Dim SubmissionDate table is NOT linked, you may link this to the 2 fact tables (Actuals and Budget) if you believe this is required.


See attached a PBIX file and two screenshots from this PBIX file.

Link to PBIX file: https://www.dropbox.com/s/riib62sd71vdini/Correct%20totals%2012%20month%20AC%20and%20BU.pbix?dl=0

Thanks in advance!Datamodel.JPGWrong measure2.JPG

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@FilipFireFlyBI 

Use SUMX with your measure:

Sumx Measure AC + BU.. =
SUMX ( 'Dim ValueDates', [Measure AC + BU incorrect Total] )

result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

1 REPLY 1
PaulDBrown
Community Champion
Community Champion

@FilipFireFlyBI 

Use SUMX with your measure:

Sumx Measure AC + BU.. =
SUMX ( 'Dim ValueDates', [Measure AC + BU incorrect Total] )

result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.