Forum Discussion
And OR not working in power Query
- Anonymous3 years ago
I completely agree with this solution but somehow in some cases the combination of OR and <> is not working properly. In my case, for some blocks its working and for some its not though the logic is same. So, instead of OR and <> I have used nested if else again.
Thanks,
Shweta
Hi Anonymous ,
Please try:
= if [Control]="ENG0N" and ([SubControl]="ENG0N.A6" or
[SubControl]="ENG0N.IPE")
then [Month]&Text.From([Year])&[SubControl]
else if [Control]="ENG0N" and ([SubControl]<>"ENG0N.A6" or
[SubControl]<>"ENG0N.IPE")
then [Month]&[Week]&Text.From([Year])&[SubControl]
else null
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
I completely agree with this solution but somehow in some cases the combination of OR and <> is not working properly. In my case, for some blocks its working and for some its not though the logic is same. So, instead of OR and <> I have used nested if else again.
Thanks,
Shweta