L
Legacy 167309
Guest
Hi.
Completely new to this. Have been using powerpivot I guess at a basic level.
I have data whereby each week I have a list of people that work for certain durations of time each day over the course of the week. Over those durations they travel different distances. I want to compare the aggregate distances covered over a set of weeks. But to do that I want to identify the maximum duration from the week, then average the distance covered by any other person that has a duration within 10% of that maximum duration.
[TABLE="width: 379"]
<tbody>[TR]
[TD][/TD]
[TD]Sum of Duration (Mins)[/TD]
[TD]Sum of Distance (m)[/TD]
[/TR]
[TR]
[TD]Week1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]Person 1[/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]5,200[/TD]
[/TR]
[TR]
[TD="align: center"]Person 2[/TD]
[TD="align: center"]75[/TD]
[TD="align: center"]4,200[/TD]
[/TR]
[TR]
[TD="align: center"]Person 3[/TD]
[TD="align: center"]144[/TD]
[TD="align: center"]9,300[/TD]
[/TR]
[TR]
[TD="align: center"]Person 4[/TD]
[TD="align: center"]130[/TD]
[TD="align: center"]8,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 5[/TD]
[TD="align: center"]252[/TD]
[TD="align: center"]14,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 6[/TD]
[TD="align: center"]66[/TD]
[TD="align: center"]2,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 7[/TD]
[TD="align: center"]91[/TD]
[TD="align: center"]3,500[/TD]
[/TR]
[TR]
[TD="align: center"]Person 8[/TD]
[TD="align: center"]277[/TD]
[TD="align: center"]17,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 9[/TD]
[TD="align: center"]252[/TD]
[TD="align: center"]17,000[/TD]
[/TR]
[TR]
[TD]Week2[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Person 1[/TD]
[TD="align: center"]252[/TD]
[TD="align: center"]18,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 2[/TD]
[TD="align: center"]253[/TD]
[TD="align: center"]23,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 3[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]7,800[/TD]
[/TR]
[TR]
[TD="align: center"]Person 4[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]6,500[/TD]
[/TR]
[TR]
[TD="align: center"]Person 5[/TD]
[TD="align: center"]96[/TD]
[TD="align: center"]6,300[/TD]
[/TR]
[TR]
[TD="align: center"]Person 6[/TD]
[TD="align: center"]271[/TD]
[TD="align: center"]9,700[/TD]
[/TR]
[TR]
[TD="align: center"]Person 7[/TD]
[TD="align: center"]271[/TD]
[TD="align: center"]19,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 8[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]8,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 9[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]7,250
[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>
Essentially I do not want to include any individuals that have a low duration value as it would skew the data. So In week one I would only want the average of the distances covered of the highlighted players. They are within 10% of the maximum duration achieved (277mins) in that week. Which would be 16,000m.
For week two I would only use the highlighted to generate an average value of 17,425m as the maximum duration is 271 mins and the rest are within 10% of that maximum duration.
This will be used in a powerpivot so I am looking to use a calculated measure. This is only a set of dummy data but if someone would be happy to explain how I could maybe attempt this I'd very much appreciate it.
Thank you in advance
Completely new to this. Have been using powerpivot I guess at a basic level.
I have data whereby each week I have a list of people that work for certain durations of time each day over the course of the week. Over those durations they travel different distances. I want to compare the aggregate distances covered over a set of weeks. But to do that I want to identify the maximum duration from the week, then average the distance covered by any other person that has a duration within 10% of that maximum duration.
[TABLE="width: 379"]
<tbody>[TR]
[TD][/TD]
[TD]Sum of Duration (Mins)[/TD]
[TD]Sum of Distance (m)[/TD]
[/TR]
[TR]
[TD]Week1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]Person 1[/TD]
[TD="align: center"]85[/TD]
[TD="align: center"]5,200[/TD]
[/TR]
[TR]
[TD="align: center"]Person 2[/TD]
[TD="align: center"]75[/TD]
[TD="align: center"]4,200[/TD]
[/TR]
[TR]
[TD="align: center"]Person 3[/TD]
[TD="align: center"]144[/TD]
[TD="align: center"]9,300[/TD]
[/TR]
[TR]
[TD="align: center"]Person 4[/TD]
[TD="align: center"]130[/TD]
[TD="align: center"]8,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 5[/TD]
[TD="align: center"]252[/TD]
[TD="align: center"]14,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 6[/TD]
[TD="align: center"]66[/TD]
[TD="align: center"]2,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 7[/TD]
[TD="align: center"]91[/TD]
[TD="align: center"]3,500[/TD]
[/TR]
[TR]
[TD="align: center"]Person 8[/TD]
[TD="align: center"]277[/TD]
[TD="align: center"]17,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 9[/TD]
[TD="align: center"]252[/TD]
[TD="align: center"]17,000[/TD]
[/TR]
[TR]
[TD]Week2[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Person 1[/TD]
[TD="align: center"]252[/TD]
[TD="align: center"]18,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 2[/TD]
[TD="align: center"]253[/TD]
[TD="align: center"]23,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 3[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]7,800[/TD]
[/TR]
[TR]
[TD="align: center"]Person 4[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]6,500[/TD]
[/TR]
[TR]
[TD="align: center"]Person 5[/TD]
[TD="align: center"]96[/TD]
[TD="align: center"]6,300[/TD]
[/TR]
[TR]
[TD="align: center"]Person 6[/TD]
[TD="align: center"]271[/TD]
[TD="align: center"]9,700[/TD]
[/TR]
[TR]
[TD="align: center"]Person 7[/TD]
[TD="align: center"]271[/TD]
[TD="align: center"]19,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 8[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]8,000[/TD]
[/TR]
[TR]
[TD="align: center"]Person 9[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]7,250
[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>
Essentially I do not want to include any individuals that have a low duration value as it would skew the data. So In week one I would only want the average of the distances covered of the highlighted players. They are within 10% of the maximum duration achieved (277mins) in that week. Which would be 16,000m.
For week two I would only use the highlighted to generate an average value of 17,425m as the maximum duration is 271 mins and the rest are within 10% of that maximum duration.
This will be used in a powerpivot so I am looking to use a calculated measure. This is only a set of dummy data but if someone would be happy to explain how I could maybe attempt this I'd very much appreciate it.
Thank you in advance