Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello,
I'm unrolling JSONs with shifting tag names. I need to include the parent tag name as a prefix as sometimes the nested tags have the same tag name
#"Expanded sessions.geo_info.country" = Table.ExpandRecordColumn(#"Renamed Columns5", "country", List.Buffer(List.Union(List.Transform(#"Renamed Columns5"[country], each Record.FieldNames(_))))),
Can someone advise how I can add "country." as a prefix to the field names that are expanded?
Hi @ctwig76 ,
You can try using the following function to modify the column name by merging the parent tag name as a prefix:
Table.TransformColumnNames - PowerQuery M | Microsoft Learn
Table.RenameColumns - PowerQuery M | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
88 | |
82 | |
65 | |
64 | |
58 |
User | Count |
---|---|
171 | |
115 | |
109 | |
74 | |
69 |