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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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 Kudoed Authors