Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

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)
 

 

7 Replies