Forum Discussion
Define output with condition when same row name with different output
- 5 years ago
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.
You are welcome.
If the number of rows of that product equal the number of on time entries of that product, then show On time, else show late.
If my previous reply helped, please mark that as Answer.
- Anonymous5 years agoNot applicable
Got it , thank you very much for the explanation.
I tried to combine ur dax solution with my other calculation( daydiff_item) ..result was odd, can please help shed some light ?
Category_Product =
Var Daycheck = If(ISBLANK('Table1'[DayDiff_Item]),Blank() ,
if('Table1'[DayDiff_Item] <= 1 , "On Time" ,
If('Table1'[DayDiff_Item] >= 2 , " Late " ,
Check data
)))Var Ontime2 = CALCULATE(countallrow, FILTER('Table1', Daycheck = "On Time"))
Returnif(ISBLANK('Table1'[DayDiff_Item]),Blank(),
If(ISNUMBER
(CALCULATE([CountROW_all_row],FILTER(VALUES('Table1'[Product ]),
CountROW_all_row= Ontime2))),"On Time","Late"))the output : All status in "Late"
- Ashish_Mathur5 years ago
Super User
Hi,
I am not sure what you are trying to accomplish there. If you still need my help, share some data and explain the question in simple English rather than pasing your formula.
- Anonymous5 years agoNot applicable
Hi Ashish_Mathur ,
So sorry for that !
I found my mistake after some online research..
Thanks again for your help , learnt something new 🙂