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
Marcos_
New Member

How to create a historical months on hand

DateSold UnitsEnding InventoryMonths on Hand
12/1/20221523552.4 = 355/average(152,154,136)
11/1/2022154366

2.5 = 366/average(154,136,145)

10/1/20221364563.1 = 456/average(136,145,166)
09/1/20221454583.0 = 458/average(145,166,145)
08/1/20221665633.5 = 563/average(166,145,178)
07/1/20221456533.9 = 653/average(145,178,185)
06/1/20221785232.8 = 523/average(178,185,195)
05/1/2022185477 
04/1/2022195386 

hi, 

 

I currently have a months on hand dax for the current week, taking the average last 3 months of sales and then dividing my current inventory by it.

 

I'm looking to expand this view to provide a months on hand calculation for each month. the current dax that I'm using will give the current months on hand as i updated my inventory weekly. 

 

The last column in the sample data is what i'm trying to get to. 

 

I do have an end of month inventory table that I'm planning on using for this. is this possible with in Power Bi?

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

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.