cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
socialengaged Frequent Visitor
Frequent Visitor

OR

Hello

Can you please help me out with this formula? 

 

(if Text.Contains([Custom], "cloud", Comparer.OrdinalIgnoreCase) then "Cloud"
else if Text.Contains([Custom], "nuvola", Comparer.OrdinalIgnoreCase) then "Cloud"
else null) or (if Text.Contains([Custom], "ecommerce", Comparer.OrdinalIgnoreCase) then "ecommerce"
else if Text.Contains([Custom], "ecommerce", Comparer.OrdinalIgnoreCase) then "ecommerce"
else null)

 

The OR does not work. My wanted output should be 

 

Cloud | ecommerce (for some cells)

Cloud (for some cells)

ecommerce (for some cells)

 

Thanks

Eugenio

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: OR

@socialengaged,

 

You may add a custom column as follows.

= Text.Combine(
{
(if Text.Contains([Custom], "cloud", Comparer.OrdinalIgnoreCase) then "Cloud"
else if Text.Contains([Custom], "nuvola", Comparer.OrdinalIgnoreCase) then "Cloud"
else null)
, (if Text.Contains([Custom], "ecommerce", Comparer.OrdinalIgnoreCase) then "ecommerce"
else null)
}
, " | "
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: OR

@socialengaged,

 

You may add a custom column as follows.

= Text.Combine(
{
(if Text.Contains([Custom], "cloud", Comparer.OrdinalIgnoreCase) then "Cloud"
else if Text.Contains([Custom], "nuvola", Comparer.OrdinalIgnoreCase) then "Cloud"
else null)
, (if Text.Contains([Custom], "ecommerce", Comparer.OrdinalIgnoreCase) then "ecommerce"
else null)
}
, " | "
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

socialengaged Frequent Visitor
Frequent Visitor

Re: OR

Thanks! It worked like a charm! 🙂 

Helpful resources

Announcements
New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (3,582)