Forum Discussion
Puero
8 years agoNew Member
Get data in a tree structure for a custom visual
Hello,
I'm trying to create my first custom visual.
For my visual I need data in a tree structure like this, the tree shouldn't contain duplicates:
{
name: '...',
children: [
{
name: '...',
children: [ {}, {}, ...]
},
{
name: '...',
children: [ {}, {}, ...]
},
...
]
}
Actually I use table data binding and converting the data in the tree structure. But I wonder if there is a way to get the data in this tree structure direcly from Power BI, so that I don't have to convert the data.
Hello Puero
Power BI Custom Visuals API doesn't support tree-mapping.
We'll consider this mapping in upcoming versions of API.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals