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
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
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.

Top Solution Authors