I am working on a Matrix visualization in Power BI. I would like to custom sort a field called [Risk]. There are three types of [risk]: low, moderate & high. I created a new column Sort Risk: Low = 1, moderate =2 and high =3 using dax. I told Power BI to sort by [Sort Risk].
Sort Risk = SWITCH([Risk], "low",1,"moderate",2,"high",3)


