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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
tinjade
New Member

add a custum column (If condition error)

Dear All,

 

I have a big problem in  custum column for IF condition as below image. After typing "then", it show error "Token Eof expected". Please help me and Thank in advance.

Screenshot 2023-01-10 20.50.42.png

2 ACCEPTED SOLUTIONS
Idrissshatila
Super User
Super User

Hello @tinjade ,

 

Try using conditional column in your case, check it in the following link:

https://learn.microsoft.com/en-us/power-query/add-conditional-column

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

Greg_Deckler
Community Champion
Community Champion

@tinjade IF needs to be if and you need an else statement as well I believe.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
tinjade
New Member

Thank you very much for quick response. It solved!

Greg_Deckler
Community Champion
Community Champion

@tinjade IF needs to be if and you need an else statement as well I believe.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you very much for quick response. It solved!

Idrissshatila
Super User
Super User

Hello @tinjade ,

 

Try using conditional column in your case, check it in the following link:

https://learn.microsoft.com/en-us/power-query/add-conditional-column

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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