Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
= Table.AddColumn(#"Changed Type3", "Recode", each if Text.StartsWith([Change Type_ID],{"P","A","B","C"}) then [Change Type_ID] else [Location]&Text.End([ChangeType_ID],10))
This is not working in my query and Error for all
Error expression, We cannot convert a value of type List to type Text.
Details:
Value=List
Type=Type
Solved! Go to Solution.
Use this
= Table.AddColumn(#"Changed Type3", "Recode", each if List.Contains({"P","A","B","C"}, Text.Start([Change Type_ID],1)) then [Change Type_ID] else [Location]&Text.End([ChangeType_ID],10))
Thank you for your reply. It working.
Use this
= Table.AddColumn(#"Changed Type3", "Recode", each if List.Contains({"P","A","B","C"}, Text.Start([Change Type_ID],1)) then [Change Type_ID] else [Location]&Text.End([ChangeType_ID],10))