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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ewaghabi
Frequent Visitor

How to change grouping datarole fields order from the custom visual, like decomposition tree

I'm coding an hierarhical tree custom visual using matrix dataview mapping and want to change, at user's will and from within the custom visual, the order of the fields in the grouping datarole, as seen in the decomposition tree visual and also comercial ones like xViz's hierarchichal tree (https://xviz.com/visuals/hierarchical-tree/).

 

For instance, if you have this situation in the decomposition tree visual:

 

decomp1.png

 

 

 

 

 

 

 

 

 

 

After you choose 'Nível 4', the ACTUAL ORDER of the fields in the right pane is changed:

 

decomp2.png

My guess is that by doing this, my visual will receive a new matrix mapping tree with the recalculated nodes, but I haven't been able to figure out how to do so. I've tried changing the dataViews.matrix.rows.root directly and updating the visual but to no avail.

 

Again, it's a feature seen in comercial visuals so I'm guessing the current API allows it.

 

Thanks in advance.

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @ewaghabi 

Well, this is beyond my level. You can also post this topic at Developer - Microsoft Power BI Community. Users there have more experience in developing custom visuals. You may get some ideas there.

 

Regards,
Community Support Team _ Jing

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors