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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.