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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

 

 

V-pazhen-msft
Community Support
Community Support

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


Paul Zheng _ Community Support Team

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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