scaramangamp
New Member
- Joined
- Sep 15, 2015
- Messages
- 1
Hi all!
I'm new to this forum but had a look through and couldn't find an answer to this questions which I've been working on for a couple of days.
I have two distinct sets of data: Repair data and sales data. I want to find out the % of our repairs that happen when the product is off a particular age and then be able to drilll down.
Repair Data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Shop[/TD]
[TD]Component[/TD]
[TD]Repair Date[/TD]
[TD]Component Age at time of repair (months)[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]London[/TD]
[TD]TV[/TD]
[TD]14/05/2015[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Liverpool[/TD]
[TD]Fridge[/TD]
[TD]12/06/2015[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]New York[/TD]
[TD]Radio[/TD]
[TD]5/04/2015[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Washington[/TD]
[TD]TV[/TD]
[TD]15/05/2015[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Sales Data
[TABLE="width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Shop[/TD]
[TD]Component[/TD]
[TD]Time since sale (months)[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Liverpool[/TD]
[TD]TV[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Whashington[/TD]
[TD]TV[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]London[/TD]
[TD]Fridge[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]London[/TD]
[TD]Radio[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]New York[/TD]
[TD]Fridge[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
The main KPI I want to make is: (Number of products repaired at each age / Number products that could have failed at that age). For example, if we are looking at a repair age of two months the denominator would be the number of products 2 months or older (i.e. they had the chance to fail at that age.)
I would like to present it in a graph (y axis) is % failed, x axis is age in months. I would then like to be able to have slicers for country, shop, component and a timeline for repair date (so I can see if this is improving over time).
I am playing around with DAX formulae but am struggling a little as I don't see how I can introduce the 'age in months' selection as a variable into the calculated field in the sales table.
It is quite a interesting challenge, I think, and I would really appreciate any help.
Thanks!
I'm new to this forum but had a look through and couldn't find an answer to this questions which I've been working on for a couple of days.
I have two distinct sets of data: Repair data and sales data. I want to find out the % of our repairs that happen when the product is off a particular age and then be able to drilll down.
Repair Data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Shop[/TD]
[TD]Component[/TD]
[TD]Repair Date[/TD]
[TD]Component Age at time of repair (months)[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]London[/TD]
[TD]TV[/TD]
[TD]14/05/2015[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Liverpool[/TD]
[TD]Fridge[/TD]
[TD]12/06/2015[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]New York[/TD]
[TD]Radio[/TD]
[TD]5/04/2015[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Washington[/TD]
[TD]TV[/TD]
[TD]15/05/2015[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
Sales Data
[TABLE="width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Shop[/TD]
[TD]Component[/TD]
[TD]Time since sale (months)[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]Liverpool[/TD]
[TD]TV[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]Whashington[/TD]
[TD]TV[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]London[/TD]
[TD]Fridge[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD]London[/TD]
[TD]Radio[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD]New York[/TD]
[TD]Fridge[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]
The main KPI I want to make is: (Number of products repaired at each age / Number products that could have failed at that age). For example, if we are looking at a repair age of two months the denominator would be the number of products 2 months or older (i.e. they had the chance to fail at that age.)
I would like to present it in a graph (y axis) is % failed, x axis is age in months. I would then like to be able to have slicers for country, shop, component and a timeline for repair date (so I can see if this is improving over time).
I am playing around with DAX formulae but am struggling a little as I don't see how I can introduce the 'age in months' selection as a variable into the calculated field in the sales table.
It is quite a interesting challenge, I think, and I would really appreciate any help.
Thanks!