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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors