Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Puero
New 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.

1 ACCEPTED SOLUTION
v-viig
Community Champion
Community Champion

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

pbicvsupport@microsoft.com

 

View solution in original post

2 REPLIES 2
v-viig
Community Champion
Community Champion

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

pbicvsupport@microsoft.com

 

Ok thanks

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.