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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors