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

Need help to create a column with Real Data and planned data

Hello, i need help to create a column (or a measure) that can make an "estimated Production" value with all Real data available and for future days of the month, takes planed data so you can have a value estimated if we are going ok or not with production by the end of the month. 

So in this image, new column or measure should be real data from 1 sep to 8th sep, and from 9th sep to 30th sep, use the planned data. 

How can i achieve that with DAX ??

thank you a lot in advance, it would help me a lot.

 

 

Example.png

1 ACCEPTED SOLUTION
ddpl
Solution Sage
Solution Sage

@Anonymous , Create a calculated column as written below,

 

Estimated Production = 

SWITCH(
    TRUE(),
    'Table'[Date] >= DATE(2022, 9, 1) && 'Table'[Date] <= DATE(2022, 9, 8), 'Table'[Real Production],
    'Table'[Date] >= DATE(2022, 9, 9) && 'Table'[Date] <= DATE(2022, 9, 30), 'Table'[Plan Production]
)

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

i did it thank you

ddpl
Solution Sage
Solution Sage

@Anonymous , Create a calculated column as written below,

 

Estimated Production = 

SWITCH(
    TRUE(),
    'Table'[Date] >= DATE(2022, 9, 1) && 'Table'[Date] <= DATE(2022, 9, 8), 'Table'[Real Production],
    'Table'[Date] >= DATE(2022, 9, 9) && 'Table'[Date] <= DATE(2022, 9, 30), 'Table'[Plan Production]
)
Anonymous
Not applicable

Thank you, it worked, now how can i make it more general, for Last Date with Real data and First day of any month? 

i'm guessing I need a Measure to determinate last date with real data

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors