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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
john_m_dixon
Frequent Visitor

Custom visual matrix dataview sorting behavior

I have a custom visual that uses a matrix dataview. I have sorting set to ascending on a numeric column, but I am seeing odd behavior in the "sorted" dataset. The data is hierarchical, but the column being sorted on does not roll up to all levels of the hierarchy, as it is only applicable to the lowest level. 

In this case, I am sorting on the right-most column, StageOldAge.

odd_sorting.png

I would expect Jurassic to be above Triassic in this case becuse Tithonian (152.10) is less than Ladinian (242.0).

Not sure if this is because the StageOldAge column does not roll up in the hierarchy, and these values are blank. Sorting is respected at the lowest level of the hierarchy, but the order at the higher levels seems undefined.

Is this expected behavior? In this case I'm disabling user sorting and defining custom sorting in the visual.

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.