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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Sean-OReilly
Helper IV
Helper IV

Issue with IF Statement when trying to add Custom Column

Hi

 

I am having an issue with IF Statement when trying to add Custom Column

Can you please let me know what is wrong with the below?

SeanOReilly_1-1659088217734.png

Thanks for your help in advance

 

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @Sean-OReilly 

I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Barthel
Solution Sage
Solution Sage

Hey, 

 

Try this:

if [Division] = "McKeon Group" then "Group" else if [Division] = "Group" then "Group" else if [Division] = "Major Works" then "Major" else "0"
amitchandak
Super User
Super User

@Sean-OReilly . This is power query syntax is wrong

 

if then else

 

example

 

if [Value.1] = "Ok" then "A"
else if [Value.1] = "Procesing" then "Ok"
else "Error"

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors