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 All,
I have a list of a table of defective value / total value by date and factory location.
In E2, I like to show the result of D10 / D5 , could you please help!
All the best,
Paris
Solved! Go to Solution.
Hi, @paris
Based on the above data, I guess there is an error in the description, E2=D2/D5 instead of D10/D5.
So, try to create a measure like this:
Measure =
VAR _def =
CALCULATE (
SUM ( [Value] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Date], 'Table'[Factory] ),
[ltem] = "Defective"
)
)
VAR _Total =
CALCULATE (
SUM ( [Value] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Date], 'Table'[Factory] ),
[ltem] = "Total"
)
)
RETURN
IF ( MAX ( [ltem] ) = "Total", BLANK (), DIVIDE ( _def, _Total )
Result:
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @paris
Based on the above data, I guess there is an error in the description, E2=D2/D5 instead of D10/D5.
So, try to create a measure like this:
Measure =
VAR _def =
CALCULATE (
SUM ( [Value] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Date], 'Table'[Factory] ),
[ltem] = "Defective"
)
)
VAR _Total =
CALCULATE (
SUM ( [Value] ),
FILTER (
ALLEXCEPT ( 'Table', 'Table'[Date], 'Table'[Factory] ),
[ltem] = "Total"
)
)
RETURN
IF ( MAX ( [ltem] ) = "Total", BLANK (), DIVIDE ( _def, _Total )
Result:
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Zeon Zheng,
Thank you so much for your help. It worked nicely , thank you again.
Thank you again,
All the best,
Paris
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
44 | |
41 | |
39 | |
36 |