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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors