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
Anonymous
Not applicable

Hybrid matrix sort

I have made a custom matrix with the following measure and I am getting the expected result but I am not able to sort it by the column I want. I wish I could sort it by any of the column either "Ventas Netas" or "Utilidad bruta" and such.

 

Values for Matrix =
VAR calc = IF(SELECTEDVALUE('Evolucion-Hybridtable'[index])=1,FORMAT([Ventas Netas],"#,###0"),
IF(SELECTEDVALUE('Evolucion-Hybridtable'[index])=2,[Utilidad Bruta],
IF(SELECTEDVALUE('Evolucion-Hybridtable'[index])=3,FORMAT([% Ventas],"#0.0%"),
FORMAT([% Margen Bruto Hybrid],"#0.0%")
)))
RETURN
IF(AND(ISBLANK([Ventas Netas]),ISBLANK([Utilidad Bruta])),BLANK(),calc)
 
DataScientistR_0-1617110702210.png

 

7 REPLIES 7
DataBank
Helper III
Helper III

Hi Experts ,

i wanna to sort the hirarchy of hybrid matrix.....

but im unable to handle sorting

DataBank_0-1655732685259.png

 

DataBank_1-1655732685573.png

 

 

Anonymous
Not applicable

@Anonymous 
Can you put it in a sample pbix and share the file link. 


Paul Zheng _ Community Support Team

Anonymous
Not applicable
lbendlin
Super User
Super User

what happens when you click on one of the measure names in your matrix?

Anonymous
Not applicable

@lbendlin nothing happens I can not click on it

lbendlin
Super User
Super User

custom matrix means you are adding multiple measures into the values well. Rearrange them there.

Anonymous
Not applicable

@lbendlin I didnt mean the columns order but the order of the rows to be sorted by just one of all columns that I am using.

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.