question

RafaqatAli-6298 avatar image
0 Votes"
RafaqatAli-6298 asked emilyhua-msft commented

How to add multiple if coditions in Custom column

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.


101176-image.png


power-query-not-supportedoffice-excel-itpro
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I need to add around 5 If Conditions , and need help

0 Votes 0 ·
Lz-3068 avatar image
4 Votes"
Lz-3068 answered Lz-3068 commented

@RafaqatAli-6298

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...

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @RafaqatAli-6298. Is everything OK now re. your various conditions?

0 Votes 0 ·
emilyhua-msft avatar image
0 Votes"
emilyhua-msft answered emilyhua-msft commented

@RafaqatAli-6298

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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@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.

0 Votes 0 ·