Forum Discussion
Bbrown44
Advocate II
7 years agocreate a custom column with multiple or condition statement DAX
I am trying create a custom column with the follow DAX systax which is now working create a column with select if statement with multiple AND statements: Compliant Variable = IF([sesis_valid_subject] ...
- 7 years ago
Hi Bbrown44,
Could you have tried with AND function?
See below picture and code, it could filter the right row:
Column 2 = IF(AND('Table1'[Value]=2,AND(Table1[Running total]=37,AND([Column]=37,[Date]<>BLANK()))),"True")Regards,
Daniel He
AlB
Community Champion
7 years agoHi Bbrown44
You'd have to use &&, which is the AND operator, instead of &, which is the text concatenation operator.
- Bbrown447 years ago
Advocate II
I am not getting a syntax error here is what I am getting: Syntax: Program service Compliant = IF([sesis_valid_subject] = 1 & [subject_course_linked] = 1 & [language_linked] = 1 & [teacher_count_linked] = 1 & [sped_properties_linked] = 1 & [swd_certified_tchr_linked] = 4 & [lang_certified_tchr_linked] = 1, 1,0) Error statement "DAX comparison operations do not support comparing values of type Integer with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values."