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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kulkarnipriya87
Helper IV
Helper IV

Carry forward Value from previous week to the next week

I have Measure for opening inventory, Closing Inventory and forecast.
If in week 3 my opening inventory is 10, Forecast is 2 and cIntransit is 5 then
According  to formula 10 + 5 - 2 = 13.
13 is my Closing inventory.

Now I want 13 is the opening inventory for the next week.
Closing inventory of previous week is the opening inventory of the next week.

 

 

 

Material code1234567891011121314151617
Opening  inventory(Factory inventory+To factory+OIPL inventory)(Opening inventory
+Intransit inventory
-Forecast)
101328000000000000
ForecastFrom forecast file 25             
IntransitFrom PO tracker (Tentative ETA- cloumn AD from PO tracker) 52030            
Closing inventory(Opening inventory
+Intransit inventory
-Forecast)
 1328             
6 REPLIES 6
kulkarnipriya87
Helper IV
Helper IV

@Greg_Deckler
Can you help with this?

lbendlin
Super User
Super User

OK. What is your question?

 

(Note that Power BI doesn't like these kinds of wide tables, you will want to unpivot the data for easier processing.)

My weeks are calculated fields.
[Opening Inventory] and [Closing Inventory] are my calculated measures.
Now, I want to display it in this format.
Suppose the closing inventory this week is 10 then 10 should reflect the opening inventory in the next week.

Opening Inventory = Closing inventory of the previous week.

Use List.Accumulate in Power Query or SUMX in DAX to achieve this desired result.

 

Please provide sanitized sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Please explain the table relationships.  A standard Power BI data model prefers 1:* connections that are single directional.  Yours looks more like a Qlik model.

lbendlin_0-1682632242106.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.