Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
DianaDSTM
Regular Visitor

Custom column - two conditions

Hi, I'm trying to add two conditions using the custom column format, however keep getting an error under "and".

 

DianaDSTM_0-1700059968453.png

 

2 REPLIES 2
DianaDSTM
Regular Visitor

Hi @PhilipTreacy

 

Thanks for your reply. I re-wrote it all again but then the error was at the end of the sentence. However, I checked on google and apparently where theres an "if" there must be a "then" and an "else" so I added "else null" and now it seems to have worked.

 

DianaDSTM_0-1700126545640.png

 

DianaDSTM_1-1700126659733.png

 

 

PhilipTreacy
Super User
Super User

Hi @DianaDSTM 

 

Use double quotes like this, not the fancy curly ones in your image

 

if [Condition 1] = "OK" and [Condition 2] = "OK" then "OK To Pay" .......

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.