Evening all,
Ok so I don't know how to do what I am asking for. The project that I am working on is to show the cost and milage for a vehicle each month. Seems simple enough but I am struggling because I am not sure how to break down this into it's smallest bits and pieces and to solve it that way.
Another issue is the calculation that I am trying to use is what is getting me down as I need to make the computation without using a table calculation and keeping 13 months in the view.
What I am looking for is cars that are under utilized. So our business rule says that the car's month milage has to be larger than the average milage for a 6 month period. The 6 month period is defined as the current month plus the previous 5 months.
Example:
Car 1 - in Oct 2018 the total milage was 350 miles. The average milage from May 2018 - Oct 2018 was 302 miles - therefore this car is considered utilized.
Car 2 - in Oct 2018 the total milage was 253 miles. The average milage from May 2018 - Oct 2018 was 278 miles - therefore this car is considered under utilized.
I know one part of the calculation is the sum of the monthly milage.
The other part of the calculation is the average milage for a 6 month period.
What I see this being is the ability to pick a month anywhere in the viz and making the average milage computation from that point. That said, if because of the way that Tableau calculates values means that we have to start from the right and go back 6 months, I am ok with that. I just need to know that so I can tell others.
I have tried to use a quick calc but seems that values on the left hand side of the screen don't work correct because of the values not included in the view.
Sorry if I seem like I am floundering here. I wish our business rule concerning utilization was better defined. If you have better ideas on how to compute this, I am open to those options as well.
And I am using version 2018.1
Thank you,
Scott
Hi Scott,
Without table calc, this is the only way.
Need to create lots of calc fields underneath, anyways, see attached file.
Thanks,
Shin