The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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:
After you choose 'Nível 4', the ACTUAL ORDER of the fields in the right pane is changed:
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.
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