Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi!
I have tried alot of stuff with trial and error without success.
I want to calculate the procentage of two values. Example below:
Her i want to calculate how much in procentage i have left on safety stock.
If we divide Avail Qty / Safety Stock (Q) = 320*2400 = 0,13 or 13% that means that we are -87% from the safety stock amount which is correct.
However, when i have more than one value as can be seen below:
the procentage adds into a total procentage. What i want is to only calculate Avail Qty / Safety Stock (Q) = 201/300 = 0,67 or 67% and then be able to vizualize whats left in other words 0,33 or -33%
My calculated column for the safety stock table:
Solved! Go to Solution.
Hi @Anonymous ,
Calcualted column will show total only based on easy aggregation logic like SUM/AVG... and so on.
I suggest you to create a measure to achieve your goal.
Safety Stock % =
DIVIDE(SUM('INVENTORY_CURRENT'[Avail Qty]),MAX('INVENTORY_CURRENT'[Safety stock (Q)])) - 1
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please try the following measure
Hi @Anonymous ,
Calcualted column will show total only based on easy aggregation logic like SUM/AVG... and so on.
I suggest you to create a measure to achieve your goal.
Safety Stock % =
DIVIDE(SUM('INVENTORY_CURRENT'[Avail Qty]),MAX('INVENTORY_CURRENT'[Safety stock (Q)])) - 1
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
84 | |
80 | |
70 | |
47 | |
43 |
User | Count |
---|---|
108 | |
54 | |
50 | |
40 | |
40 |