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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Ending Inventory using January value and carrying forward the answer as beginning inventory MOM

I have a data set and I'm trying to get the following output in a BI visual. I have been doing a filter formula to get the beginning inventory for January, but that's where it goes south. Help would be much appreciated. The table below, the ending Inventory for Actuals is what I am aiming for with my BI table. This is just one of 4 divisions that I am working on with the overall report. Keep in mind that I have to use the starting inventory from another column table, then add the inbound, then subtract the outbound to get my closing balance for each month for each division. 

 

Beginning Inventory for January 2024 (keep in mind this isn't stated in the actuals table)          28,846                       
                         
 1/1/20241/1/20242/1/20242/1/20243/1/20243/1/20244/1/20244/1/20245/1/20245/1/20246/1/20246/1/20247/1/20247/1/20248/1/20248/1/20249/1/20249/1/202410/1/2024########11/1/2024########12/1/2024########
 ForecastActualForecastActualForecastActualForecastActualForecastActualForecastActualForecastActualForecastActualForecastActualForecastActualForecastActualForecastActual
Inbound             2,518                  79                  80                  80                    -                      -                 575                  71               421               210               212           1,046           1,968               180           1,466           1,986               512                     -                  117                     -   
Outbound             3,525           3,909           1,656           1,420           1,370           3,466           1,014           3,185           1,412           2,550           2,092           3,906           1,934           2,757           1,395           2,825           1,890            1,323            1,203            1,109 
                         
Ending Inventory for Actuals (this is an output as a result of the above math).                  25,016         27,506         25,380         25,732         26,506         25,986         26,269         28,007        
1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous you can take advantage of openingbalanceyear DAX function, read more about it here: OPENINGBALANCEYEAR function (DAX) - DAX | Microsoft Learn

 

As a best practice, add a date dimension in your model and use it for time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools. Check the related videos on my YT channel

 

Add Date Dimension
Importance of Date Dimension
Mark date dimension as a date table - why and how?
Time Intelligence Playlist

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@Anonymous sounds good - although the DAX function I gave will take care of it. Good luck!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous you can take advantage of openingbalanceyear DAX function, read more about it here: OPENINGBALANCEYEAR function (DAX) - DAX | Microsoft Learn

 

As a best practice, add a date dimension in your model and use it for time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools. Check the related videos on my YT channel

 

Add Date Dimension
Importance of Date Dimension
Mark date dimension as a date table - why and how?
Time Intelligence Playlist

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thank you for your response. The first issue, is the ending inventory, I included what I should see, but that's something I need the formula for and the premise is that I need to take the beginning inventory, add the inbound, subtract the outbound to get the answer. I am currently watching a closing balance youtube option as the opening balance isn't working for me. 

Anonymous
Not applicable

I do have a date table already incorported. I'm currently reviewing Amit Chandak's youtube video Abstract Thesis 92 and seeing if I can use that for this solution as well.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.