cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
eyeana Frequent Visitor
Frequent Visitor

Multiple IF conditions with text columns

Hi,

 

I would like to add a custom column in my PBI report using multiple IF conditions. 

ask.JPG

 

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?

1 ACCEPTED SOLUTION

Accepted Solutions
sturlaws New Contributor
New Contributor

Re: Multiple IF conditions with text columns

Hi @eyeana ,

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

View solution in original post

1 REPLY 1
sturlaws New Contributor
New Contributor

Re: Multiple IF conditions with text columns

Hi @eyeana ,

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

View solution in original post

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 408 members 3,842 guests
Please welcome our newest community members: