Hi All,
I’ll try and make this as clear as possible, I’m working with vehicle data and need to get a calculation of how many miles each fleet completes in a Month.
The data is cumulative so if Vehicle A does 100 miles in month 1 and a further 150 miles in Month 2, the miles data will show 250 miles by end of Month 2. So, I’ll calculate the delta between Month 2 and Month 1 which will show me that Vehicle A did 150 miles in Month 2.
Straight forward so far…
The miles are ONLY updated weekly on a Tuesday so I cannot get a “True” monthly miles number. So the miles for each vehicle will be updated on Tuesday, say Vehicle A is updated with 250 miles on Tuesday, 250 miles will show on Wed, Thu, Fri, Sat, Sun & Mon…then the update will occur and Vehicle A miles will move to 350 miles for example.
In my head my thinking was along the lines of;
- Getting the miles for only WHOLE weeks that reside within each month
- Averaging those weekly miles out per day of the week according to the % split table I have included so 19% gets attributed to weekdays, 4% on a Saturday and 1% on a Sunday.
- Then extrapolating these average day of week miles across the rest of the month to create my “Monthly Miles”. So if Tuesday % split averages 125 miles and the month in question has 5 Tuesdays then it will multiply 125 by 5 and so on.
- The monthly averages would have to be specific to that individual month as miles can fluctuate due to seasonality
- I have to provide a delta between each month and the previous month.
I’ve enclosed a PBIX with a Total Miles measure, simple sum.
Any help on this, much appreciated.
Monthly Miles.pbix (82.5 KB)
|Day|Split|
|---|---|
|Mon|19%|
|Tue|19%|
|Wed|19%|
|Thu|19%|
|Fri|19%|
|Sat|4%|
|Sun|1%|