Forum Discussion
Pivot sort
- Jan 13, 2020
hdsheena , ScottAllison - you can now use project-reorder to set the order you want, and if column names are not known (since the data set here is dynamic) you can use asc / desc.
Hi Scott,
I believe you're right and the order is not controlled. I'll forward that question to verify with the developers.
Also, please note the documentation of pivot mentions that since the resulting schema is based on changing result-sets, it is not a stable source for automation processes:
"The output schema of the pivot plugin is based on the data and therefore query may produce different schema for any two runs. This also means that query that is referencing unpacked columns may become 'broken' at any time. Due to this reason - it is not advised to use this plugin for automation jobs."
- ScottAllisonSep 20, 2018Iron Contributor
Interesting. I'm using this for a dashboard tile at the moment.
- Noa KuperbergOct 04, 2018
Microsoft
Hey, verified that and indeed no way to control the order of the pivot-based columns :/
- ScottAllisonOct 04, 2018Iron Contributor
Enhancement request! :)