Power Query M code
let
Source = YourTable,
AddedBoolean = Table.AddColumn(Source, "IsActive", each [Status] = "Yes", type logical)
in
AddedBoolean
Maps text values like "Yes"/"No" to a proper logical (Boolean) column.
let
Source = YourTable,
AddedBoolean = Table.AddColumn(Source, "IsActive", each [Status] = "Yes", type logical)
in
AddedBoolean
Adjust the comparison to match your actual text values, such as [Status] = "Active" or Text.Upper([Status]) = "Y".
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Convert Text Values to True/False.