Forum Discussion
Define output with condition when same row name with different output
- 5 years ago
Anonymous , Try new column and measure
new column
overall Status= countx(filter(Table, [product] = earlier([product] ) && [Status] = "Late"),[product])
New meausre
divide(calculate(distinctcount(Table[Product]), [overall Status] = "Late"), calculate(distinctcount(Table[Product]) ,all(Table)))
- Anonymous5 years agoNot applicable
Hi amitchandak ,
Thanks and appreciate very much on your fast response.
- I hv tried but it doesnt work as expected.
Overall status column
- Can help to show the overall status in text format ? ( Shown in expected output in first post)
( if there is a "Late" in status column for the product , then will take the worst case as "late", else will be "On time" )
- the overall status dax function you shared is ignoring "On time" status as below
- Measure logic is not working.
- Ashish_Mathur5 years agoSuper User
- Anonymous5 years agoNot applicable
HI Ashish_Mathur ,
Thank you for the file., it is working !
Could you please help me to interpret this measure that you created ?
Not too sure how this only consider worst case "late" when both "On time" and "late" condition exists.
Measure = if(ISNUMBER(CALCULATE([Countrow_],FILTER(VALUES(Data[Product]),[Countrow_]=[On time count]))),"On Time","Late")