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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors