Forum Discussion
HenryJS
6 years agoPost Prodigy
Add Column: If statement
Hi all,
How can I add a column that returns "Yes" if the following statements are true:
- CSCS is blank
- OR CSCS is in the next 1 Month
- OR Passport is blank
- OR Passportin the next 1 Month
- OR Reference 1 is "No"
- OR Reference 2 is "No"
Please could someone advise the DAX code?
Thank you
Hi HenryJS
try
Column = IF( ISBLANK([CSCC]) || DATEDIFF(TODAY(), [CSCC], MONTH) <= 1 || ISBLANK([Passport]) || DATEDIFF(TODAY(), [Passport], MONTH) <= 1 || [Reference1] = "No" || [Reference2] = "No" , "Yes", "Other" )