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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.