Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
= 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))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 16 | |
| 16 | |
| 11 | |
| 10 | |
| 9 |