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
Anonymous
Not applicable

Actuals vs Forecast in same data

Hey all,

 

I am looking to figure out a way to compare actuals to the forecast from the previous month. Currently, I have all the data in an appended table varying by month. It works well for making nice charts showing the change over time, but I really want to show how accurate our forecast was 30 days ago (eventually I will expand to 60 and 90 days). Below is an example of the structure of the data. I am trying to compare the data of the two bold categories. Thanks in advance!

 

Month Data PulledDateForecast or Actual?CategoryValue
2/1/20221/1/2022ActualsA

10

2/1/20222/1/2022ForecastA10
2/1/20223/1/2022ForecastA10
2/1/20221/1/2022ActualsB20
2/1/20222/1/2022ForecastB20
2/1/20223/1/2022ForecastB20
3/1/20221/1/2022ActualsA10
3/1/20222/1/2022ActualsA11
3/1/20223/1/2022ForecastA12
3/1/20221/1/2022ActualsB20
3/1/20222/1/2022ActualsB21
3/1/20223/1/2022ForecastB21

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, you want to compare the data of the two bold categories? Here are my steps you can follow as a solution.

 

(1)This is my test data.

vtangjiemsft_0-1664358155825.png

 

(2)We can create  a measure.

 

Pre_Month_actuals = var _current_date = SELECTEDVALUE('Table'[Month Data Pulled])

var _pre= EOMONTH(_current_date , -2)+1

return

SUMX( FILTER('Table', 'Table'[Date]= _pre) , [Value])

 

 

Pre_Month_Forcast = var _current_date = SELECTEDVALUE('Table'[Month Data Pulled])

var _ca=SELECTEDVALUE('Table'[Category])

var _pre= EOMONTH(_current_date , -2)+1

var _f=FILTER(ALLSELECTED('Table'),'Table'[Month Data Pulled]= _pre && 'Table'[Date]= _pre && 'Table'[Forecast or Actual?]="Forecast" && 'Table'[Category]=_ca)

return

SUMX(_f,[Value])

 

(3) Then the result is as follows.

vtangjiemsft_1-1664358155828.png

If the above one can't help you get the desired result, please provide some sample data in your tables (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. Thank you.

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, you want to compare the data of the two bold categories? Here are my steps you can follow as a solution.

 

(1)This is my test data.

vtangjiemsft_0-1664358155825.png

 

(2)We can create  a measure.

 

Pre_Month_actuals = var _current_date = SELECTEDVALUE('Table'[Month Data Pulled])

var _pre= EOMONTH(_current_date , -2)+1

return

SUMX( FILTER('Table', 'Table'[Date]= _pre) , [Value])

 

 

Pre_Month_Forcast = var _current_date = SELECTEDVALUE('Table'[Month Data Pulled])

var _ca=SELECTEDVALUE('Table'[Category])

var _pre= EOMONTH(_current_date , -2)+1

var _f=FILTER(ALLSELECTED('Table'),'Table'[Month Data Pulled]= _pre && 'Table'[Date]= _pre && 'Table'[Forecast or Actual?]="Forecast" && 'Table'[Category]=_ca)

return

SUMX(_f,[Value])

 

(3) Then the result is as follows.

vtangjiemsft_1-1664358155828.png

If the above one can't help you get the desired result, please provide some sample data in your tables (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. Thank you.

 

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. 

 

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.