Forum Discussion
Need help with custom column formula in PowerQuery
- Anonymous5 years ago
Hi arb1782 ,
You could use the following syntax in "Add a custom column" window.
each if [X]="xyz" then "Yes" else if [Y]="xyz" then "Yes" else "No"Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please upload some insensitive data samples and expected output.Best Regards,
Eyelyn Qin
Use the Option in the ribbon to add a new conditional column and write the logic in the interface. You can select different columns.
For example:
Ah, I didn't spot that before, thanks! I've set it up as is following:
If column x CONTAINS 'xyz' then yes
OR if column y is equal to 'xyz' then yes
Otherwise No
Mhy remaining problem is that when column x is null, PBI returns error instead of No. Any ideas how to rectify this? There doesn't appear to be 'isnull' in the available criteria.
- arb17825 years agoHelper III
Any further thoughts on my reply PaulDBrown