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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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