Forum Discussion
Cannot convert a value of type Record to type Text.
- Anonymous3 years ago
Hi JohnLow ,
Please refer to the following steps, hope it helps.
let Source = #table({"aa","bb"},{{1,{1,2,3}},{2,{33,44}}}), Custom1 = Table.TransformColumns(Source,{"bb", each Record.FromList(_,{"1"..Text.From(List.Count(_))})}), #"Expanded bb" = Table.ExpandRecordColumn(Custom1, "bb", {"1", "2", "3"}, {"1", "2", "3"}) in #"Expanded bb"Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Yes, but if I expand this, it give me 9 rows for each record and I would like 9 columns instead. Just not sure how to do that.
Hi JohnLow ,
Please refer to the following steps, hope it helps.
let
Source = #table({"aa","bb"},{{1,{1,2,3}},{2,{33,44}}}),
Custom1 = Table.TransformColumns(Source,{"bb", each Record.FromList(_,{"1"..Text.From(List.Count(_))})}),
#"Expanded bb" = Table.ExpandRecordColumn(Custom1, "bb", {"1", "2", "3"}, {"1", "2", "3"})
in
#"Expanded bb"
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum