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

Combine Actuals and Forecast Values for Full Year Total

I have created two measures from separate tables. One measure is grabbing the sum from my cost report, or actuals:

DAXtheDestroyer_0-1711583457543.png

The second measure is getting the sum of our forecast values from a different table:

DAXtheDestroyer_1-1711583518562.png

To combine these for a visual broken out by month, I run an if statement:

DAXtheDestroyer_2-1711583565532.png

 

This has been helpful and I am able to produce the correct visual, but I can't seem to provide an end-of-year sum of each month in the ACTFCST column. It is only taking the total actuals.

Here is the data in a tabular form:

DAXtheDestroyer_3-1711583647667.png

Notice that the monthly values are correct, it ignores the forecast values if I have an actual value for the month, but gives me a false total.

How can I change my ACTFCST measure to produce a proper total?

 

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @DAXtheDestroyer ,

 

Please try to create a new measure.

_New_ACTFCST_Measure = SUMX(VALUES(Table[Period]), [Cost ACTFCST])

//NewMeasure = SUMX(VALUES(YourTable[Period]), [YourCurrentMeasure])

The newly created measure is then placed on the visual object and it will display the correct totals.

 

Best Regards,

Neeko Tang

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

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @DAXtheDestroyer ,

 

Please try to create a new measure.

_New_ACTFCST_Measure = SUMX(VALUES(Table[Period]), [Cost ACTFCST])

//NewMeasure = SUMX(VALUES(YourTable[Period]), [YourCurrentMeasure])

The newly created measure is then placed on the visual object and it will display the correct totals.

 

Best Regards,

Neeko Tang

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

Thank you. It works as intended!

DAXtheDestroyer_0-1711632964149.png

 

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.