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
No..its zero...it's sample data. All columns are text. OR operator working in some cases and in some cases it's not working.
- Anonymous3 years agoNot applicable
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 nullBest Regards,
Gao
Community Support TeamIf 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
- Anonymous3 years agoNot applicable
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