I am trying to add custom column with multiple conditions with if statement but getting the following error in the Image.
Need help if anyone can, help would be highly appreciated.

I am trying to add custom column with multiple conditions with if statement but getting the following error in the Image.
Need help if anyone can, help would be highly appreciated.

2 things obvious in your picture:
- The 2nd if is written If. Change it with if (Power Query M is case sensitive)
- After the above if a space is missing before [Service Type]
If you make those changes and pay attention not to make the same mistakes again :) you're on the right way...
Please refer to Lz-3068's reply.
Besides, here is an article "The IF Function in Power Query: Tutorial, Example If Statements and Errors Explained (Complete Guide)", you may have a look.
Please note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
@RafaqatAli-6298
I am checking this thread, is there any updates?
If Lz-3068's reply is helpful, please remember to click "Accept Answer" and upvote it.
6 people are following this question.