Forum Discussion

DebbieE's avatar
DebbieE
Icon for Community Champion rankCommunity Champion
7 years ago
Solved

Conditional Column Case sensitive

Im creating flags using Text. But it seems that its case sensitive "microsoft", "Microsoft"   Is there anyway I can get rid of that? I dont want to add 2 conditions when i only need one?   Debbi...
  • Gazzer's avatar
    Gazzer
    7 years ago

    Create your conditional column exactly as you have been doing, then go to the formula bar and edit it to be something like:

     

    = Table.AddColumn(#"Renamed Columns", "MyConditionalCol", each if Text.Lower([MyColumn]) = "microsoftazure" then 1 else 0)

     

    The key bit is wrapping Text.Lower() around the column name and making sure the comparitor is also lowercase.