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
Marksquall
Frequent Visitor

Creation and Warehouse (Measure Creation) for Week 1 is constant Week 2 and so on is dynamic.

Good Day,

 

I would like to request some help regarding 2 measures for creation and warehouse.

 

In excel:

"Creation" is basically Week 1 is equal to "Request" then Week 2 forward is [=IF(B5>C2, "0", C2-B5)] and so on.

"Warehouse" is Week 1 [=B3-B4] then Week 2 foreward is [=B5+C3-C4] and so on.

 

I would need the measure for both creation and warehouse when 1st week value is derive on a contant value then Week 2 forward it dynamically changes from last week value.

 

Marksquall_0-1679244313474.png

 

 

Here is a copy of the PBI file for reference.

https://drive.google.com/file/d/1iY4GElMdvyihPmpFsP0Y6JGWtqztNR9l/view?usp=share_link

 

Excel file:

https://docs.google.com/spreadsheets/d/1F2JLVcpESl4MWiBhClN7C1g99tlKzYQY/edit?usp=share_link&ouid=11...

 

1 REPLY 1
wdx223_Daniel
Super User
Super User

it's hard to resolve this kind of recursion problem with DAX code, and suggest you to use M to created two columns.

wdx223_Daniel_0-1679286489189.png

= Table.FromRecords(List.Accumulate(Table.ToRecords(#"Changed Type"),{{},0},(x,y)=>let a=List.Max({y[Request],x{1}})-y[Shipped] in {x{0}&{y&[Creation=List.Max({0,y[Request]-x{1}}),Warehouse=a]},a}){0})

 

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.