Forum Discussion
What determines the column order of a table data view mapping?
- 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
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
- absmiths8 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-viig8 years ago
Community Champion
We'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
- Anonymous7 years agoNot applicable
v-viig Can you give an example of how to use the 'roles' property to determine column?
- dm-p7 years ago
Super User
Hi Anonymous,
We've recently discussed this here, and this helped out the person making the post. See if this works for you and we can discuss further as necessary.
Good luck!
Daniel
- Anonymous7 years agoNot applicable
Thanks for the link. I am using a table this time. e.g. dataView.table...what's the syntax to get the corresponding columns if it is table? Thanks.
dm-p wrote:Hi Anonymous,
We've recently discussed this here, and this helped out the person making the post. See if this works for you and we can discuss further as necessary.
Good luck!
Daniel