Forum Discussion
socialengaged
9 years agoNew Member
Concatenate IF with OR operator
hello everyone! im almost new with powerbi, and i find it a great tool! I have an issue thou, I hope you can help me find out a solution: when i create a Custom Query -> Custom Column, I add t...
- 9 years ago
Hi socialengaged,
Try this formula please.
=if (Text.Contains([Words], "cloud") or Text.Contains([Words], "computing")) and (Text.Contains([Words], "analytics") or Text.Contains([Words], "data") ) then "Cloud|Analytics" else if (Text.Contains([Words], "cloud") or Text.Contains([Words], "computing")) and not (Text.Contains([Words], "analytics") or Text.Contains([Words], "data") ) then "Cloud" else if not (Text.Contains([Words], "cloud") or Text.Contains([Words], "computing")) and (Text.Contains([Words], "analytics") or Text.Contains([Words], "data") ) then "Analytics" else nullBest Regards!
Dale
v-jiascu-msft
Microsoft Employee
8 years agoHi socialengaged,
Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.
Best Regards!
Dale
socialengaged
8 years agoNew Member
Thanks! Fixed, sorry for delay.