Forum Discussion
Anonymous
4 years agoNot applicable
IF AND DAX Error
Hi Experts Getting and error with my IF (AND( dax measure and cannot see what i have done wrong? Oder Type (new) = IF(AND(NEWBI_COMPS[Order Type]="Maintenance",NEWBI_COMPS[Renewal]="True"),"Ren...
- 4 years ago
Hi Anonymous ,
Try this:-
Oder Type (new) = SWITCH ( TRUE (), AND ( NEWBI_COMPS[Order Type] = "Maintenance", NEWBI_COMPS[Renewal] = "True" ), "Renewal", AND ( NEWBI_COMPS[Order Type] = "Maintenance", NEWBI_COMPS[Renewal] = "False" ), "New", NEWBI_COMPS[Order Type] )Thanks,
Samarth
Samarth_18
4 years agoCommunity Champion
Hi Anonymous ,
Try this:-
Oder Type (new) =
SWITCH (
TRUE (),
AND ( NEWBI_COMPS[Order Type] = "Maintenance", NEWBI_COMPS[Renewal] = "True" ), "Renewal",
AND ( NEWBI_COMPS[Order Type] = "Maintenance", NEWBI_COMPS[Renewal] = "False" ), "New",
NEWBI_COMPS[Order Type]
)
Thanks,
Samarth