Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Sorting Table Columns Based On Vaules

Hi all,

 

So I have a table and I would like to dynamically change the order of the columns based on the values in the top row.

 

So the table below:

 

 Test1Test2Test3Test4Test5Test6Test7Test8
09/09/201718%0%14%11%0%0%11%0%
16/09/20170%0%0%0%0%0%0%0%
23/09/201717%3%3%0%0%0%0%0%
30/09/20175%2%5%0%0%0%0%0%
07/10/201717%3%4%0%0%0%0%0%
14/10/20175%7%2%0%0%0%0%0%
21/10/201715%5%3%0%0%0%0%0%
28/10/201717%0%0%0%0%0%0%0%
04/11/20171%2%1%0%0%0%0%0%
11/11/20170%0%2%0%0%0%0%0%

 

Would dynamically change to :

 

 Test1Test3Test4Test7Test2Test5Test6Test8
09/09/201718%14%11%11%0%0%0%0%
16/09/20170%0%0%0%0%0%0%0%
23/09/201717%3%0%0%3%0%0%0%
30/09/20175%5%0%0%2%0%0%0%
07/10/201717%4%0%0%3%0%0%0%
14/10/20175%2%0%0%7%0%0%0%
21/10/201715%3%0%0%5%0%0%0%
28/10/201717%0%0%0%0%0%0%0%
04/11/20171%1%0%0%2%0%0%0%
11/11/20170%2%0%0%0%0%0%0%

 

Is this possible in Power BI?

 

Cheers,

 

Michael.

  • Anonymous's avatar
    Anonymous
    8 years ago

    Anonymous,

    It is not possible to dynamically change the order of the columns as you describe. In Query Editor, you can manually reorder the columns. Or you can create a table visual with the order you want.
     

    Regards,
    Lydia

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous,

    It is not possible to dynamically change the order of the columns as you describe. In Query Editor, you can manually reorder the columns. Or you can create a table visual with the order you want.
     

    Regards,
    Lydia

    • Anonymous's avatar
      Anonymous
      Not applicable

      Many thanks for your quick reply Lydia. As you propose I will manually sort the columns.