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
v-viig Can you give an example of how to use the 'roles' property to determine column?
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
- dm-p7 years ago
Super User
Hi Anonymous,
That post specifically deals with the dataView.table mapping, so not sure how much else I can provide without more targeted info. Might be better handling in a separate post that defines the issue more fully.
Failing that, I recently posted this on my website to walk through the mapping a bit further - not sure if it breaks it down more for you?
Regards,
Daniel
- Anonymous7 years agoNot applicable