Forum Discussion
pmadam
Helper II
5 years agoDAX Help
Hi All, I am trying to create a measure to show as 1 if either of the line item status is 'DE' for that order number. I created on measure but its displaying as 1 only for that line number with ...
Anonymous
5 years agoNot applicable
This is how I did it on my data set. COuld you please share your DAX query and sample data file. I can replicate the code for you.
mahoneypat
Microsoft Employee
5 years agoPlease try this expression in your measure
NewMeasure =
VAR DErows =
CALCULATE (
COUNTROWS ( Table ),
ALL ( Table ),
VALUES ( Table[Order Number] ),
Table[col_LineItemStatus] = "DE"
)
RETURN
IF (
DErows >= 1,
1,
0
)
Regards,
Pat