Forum Discussion

M_Chris's avatar
M_Chris
Frequent Visitor
1 year ago
Solved

Margin in % in a Matrix table by adding a sorting column

Hi Guys,    I need your support. As example I created a very short matrix table which looks like following:  Let's please focus on TFY24 where I wanted to have a separate measure for that fi...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Thanks for the reply from AntrikshSharma , please allow me to provide another insight: 
    Hi  M_Chris ,

    Power BI default sorting is alphabetical, if your data [KPI] has multiple identical values in a table or there is a circular dependency problem, you may consider creating a new table to customize the sorting.

    Create calculated table:

    SUMMARIZE(
        'Table',[KPI],"Rank",SUMX('Table',[Value]))

    Select [KPI] – Column tools – Sort by  column – [Rank].

    Joins the relationship between two tables.

    Result:

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.