I'm fairly new with PQ, so there's likely an easy answer to this one.
Say I'm loading up rows of data from a local JSON file. Then I expand it using what I assume is a fairly standard set of steps:
report = Json.Document(File.Contents("path\to\my\file")),
#"Converted to Table" = Table.FromList(report, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", { /* a long list of properties from my json */},
// a long list of statements that operate on various columns: reorder, cast to type, rename, add conditional columns, etc.
Every sprint or so, a couple of new properties get added to my JSON, and I need to incorporate them into the report and operate on them, as well. Is there a straightforward way of doing it that doesn't involve me going back to that Table.ExpandRecordColumn and adding them into the sets of bracketed property names every time, then manually renaming and reordering them? I'd be happiest if there were a way to do this using the UI, but if there's a way using the Advanced Editor that's more straightforward than the approach I just described, I'll take it. The way I'm doing it doesn't seem all that efficient.
Thank you.