Guitarmageddon
Board Regular
- Joined
- Dec 22, 2014
- Messages
- 161
Hello folks,
I deal in retail 4-5-4 for the date perspective of my data. There are many nifty time intelligence functions in DAX, but they work off a standard calendar. This is where my brain starts to hurt a bit....
In retail, the average inventory for a given month would be its End Of Period measured inventory, plus its beginning of period inventory, divided by 2. The data I have in my query are monthly files that snapshot the EoP inventory by different lines of business, in units (this is what you see in "QTY AVAIL" below). I'm after an average unit inventory number. I then take that warehouse inventory, look at units shipped out for that same month, and essentially arrive at a "days of supply number" (DOS below, by warehouse)
Like so:
DOS derived via this formula:
Im struggling with how to correct the DOS formula above to be more accurate. Currently its just using that current month EOP unit number (i.e. SUM ACTUAL QTY) but it needs to be using that month, plus the month one before, then dividing by 2. Without having the ability to use paralell period since i am using 4-5-4, how do I do this?
Here is a snip of what my calendar table looks like. Does anyone have thoughts how I can do the "month + month-1 " type perspective here?
I deal in retail 4-5-4 for the date perspective of my data. There are many nifty time intelligence functions in DAX, but they work off a standard calendar. This is where my brain starts to hurt a bit....
In retail, the average inventory for a given month would be its End Of Period measured inventory, plus its beginning of period inventory, divided by 2. The data I have in my query are monthly files that snapshot the EoP inventory by different lines of business, in units (this is what you see in "QTY AVAIL" below). I'm after an average unit inventory number. I then take that warehouse inventory, look at units shipped out for that same month, and essentially arrive at a "days of supply number" (DOS below, by warehouse)
Like so:
DOS derived via this formula:
Im struggling with how to correct the DOS formula above to be more accurate. Currently its just using that current month EOP unit number (i.e. SUM ACTUAL QTY) but it needs to be using that month, plus the month one before, then dividing by 2. Without having the ability to use paralell period since i am using 4-5-4, how do I do this?
Here is a snip of what my calendar table looks like. Does anyone have thoughts how I can do the "month + month-1 " type perspective here?