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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
floralobi
Regular Visitor

Create measure merging forecast and year to date actuals

 

Hi i am trying to create a measure where total for each fin month is used for records prior to the first day of the current month (01.06.17) with the total forecast per fin month used for future months (in this case June 17).

 

Forecast = CALCULATE(SUM('Excel Forecast kgs'[Kgs Collected]))

Actual= CALCULATE(sum('Database - Volumes'[Quantity Received]) )

Test Measure2 = (IF(max('Database - Volumes'[Collection Date.Date].[Date]) < [FIRSTDAYMTH],[Actual],[Forecast]))

 

But the value that comes back for the forecast of the final month is incorrect, i should be getting 962.7.

 

 

 pic.png

 

 

1 REPLY 1
Anonymous
Not applicable

@floralobi,

 

Do you want to show 962.7 for Test Measure2 in June 2017? If so, could you please share sample data of Excel Forecast kgs table and Database – Volumes table? We also need to know what formula you use to create FIRSTDAYMTH.


Regards,
Lydia

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.