Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I would like to add a custom column in my PBI report using multiple IF conditions.
If Term 1 Results = "PASS" & Term 2 Results = "PASS" & Term 3 Results = "PASS", output PASS
If Term 1 Results = "PASS" & Term 2 Results = "REPEAT" & Term 3 Results = "Repeat", output REPEAT
I've made several attempts, however PBI is giving me the error "DAX comparison operations do not support comparing values of type True/False with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values."
How can I achieve this?
Solved! Go to Solution.
Hi @Anonymous ,
this would be one way of creating the calculated column:
New Column = IF('Table'[Term 1 Results]="Pass" && 'Table'[Term 2 Results]="Pass" && 'Table'[Term 3 Results]="Pass";"Pass";"Repeat")
If it does not work for you, please post a sample version of your report for troubleshooting
regards,
Sturla
Hi @Anonymous ,
this would be one way of creating the calculated column:
New Column = IF('Table'[Term 1 Results]="Pass" && 'Table'[Term 2 Results]="Pass" && 'Table'[Term 3 Results]="Pass";"Pass";"Repeat")
If it does not work for you, please post a sample version of your report for troubleshooting
regards,
Sturla