Forum Discussion
absmiths
8 years agoRegular Visitor
What determines the column order of a table data view mapping?
In my capabilities.json, I have data roles defined like this: "dataRoles": [
{"displayName": "Measured Depth", "name": "measuredDepth", "kind": "Grouping"},
{"displayName": "Is Planned", "name"...
- 8 years ago
Columns order depend on how you fill data-fields of your custom visual.
Custom visual must use roles property to detemine what column is.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
absmiths
8 years agoRegular Visitor
Okay - not the answer I hoped for - but at least confirms my suspicion. Perhaps this would be a good feature request since parsing column data and matching by name to the configured values will be a common activity (I would suspect).
v-viig
Community Champion
8 years agoWe'll consider this idea but it's pretty easy to implement by enumerating columns and checking role name.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals