Forum Discussion

Marcegon's avatar
Marcegon
Icon for Helper II rankHelper II
2 years ago
Solved

I need help with a "Does Not Contain" statement

Hi, I need help with the "does not contain" statement below.  It is entering (1) even if the line contains "spend".  I want it to enter (1) if text does not contain "Spend, spend, or SPEND".

Any help please? 

 

if ([#"Total"] = null
or [#"Event - Total Actual"] = 0) and [Status] = "confirmed" and [#"meeting format"] <> "Virtual" and not Text.Contains([Approver], "spend")
then 1
else [#"Total"]

  • Text.Contains([Approver], "spend", Comparer.OrdinalIgnoreCase)

2 Replies

  • Text.Contains([Approver], "spend", Comparer.OrdinalIgnoreCase)

    • Marcegon's avatar
      Marcegon
      Icon for Helper II rankHelper II

      Thank you, so much!  I had to tweak it a little bit but it worked (see below)

       

      (not Text.Contains([Approver], "spend", Comparer.OrdinalIgnoreCase) or [Approver] = null)