Forum Discussion

biswad's avatar
biswad
Advocate I
8 years ago
Solved

Move column position in power BI Matrix

Hi Power Bi Family,

I need your help

 

I have a matrix with column which shows the data under column name order as  Branch, 50-60, 60 Plus, Less then 50 years but

I want to have the column order as Branch , Less than 50 years ,50-60,60 plus.

 

Can any one help me to move column or rearrange it . In excel pivot you have move option to move column.Does power BI has any potion similar to that?

 

Kind Regards,

Biswa

 

 

  • Hi biswad

    In query editor, create a condition column (Add column->condition column)

    Then sort the column by this custom column (select on the column needed to be sort, then select "sort by column"->"custom")

     

    finally, you will see 

     

    Best Regards

    Maggie

3 Replies

  • v-juanli-msft's avatar
    v-juanli-msft
    Community Support

    Hi biswad

    In query editor, create a condition column (Add column->condition column)

    Then sort the column by this custom column (select on the column needed to be sort, then select "sort by column"->"custom")

     

    finally, you will see 

     

    Best Regards

    Maggie

    • biswad's avatar
      biswad
      Advocate I

      Thanks alot for your help. It solved my issue

  • Anonymous's avatar
    Anonymous
    Not applicable

    biswad,

    you can add a Custom column in Query Editor that uses IF statements for your sort order. So say if = less than 50 years then 1 else if = 50-60 years then 2 else ... . Then you can sort your column by the custom column