Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Sorting - Power BI DEsktop

Hi,

 

I've got a table below:

Books1 moth3 moth
Harry Potter 13412
Benchmark2345
Outperformance-1133
   
Shantaram3056
Benchmark2378
Outperformance-722

 

 

How can I get the sorting order to first display book name, then benchmark ad then outperformance? Some benchmarks are names (Eg: ASX) instead of Benchmark and therefore I cant use sort by ascending order. When I use another column for sort order  and assign each of them 1,2 and 3 Power BI throws an error. (There cant be more than one value in Orering for the same value in Book_name')

 

Any advice is greatly appreciated.

 

Thansk,

ara_4

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Anonymous ,

     

    It is suggested that you add the index column into the visual to sort.

     

    The index column can be created in the Power Query Editor.

     

     

     

    Best Regards,

    Stephen Tao

     

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

4 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi amitchandak 

      I get a circular dependency error.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    It is suggested that you add the index column into the visual to sort.

     

    The index column can be created in the Power Query Editor.

     

     

     

    Best Regards,

    Stephen Tao

     

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

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    Could you tell me if your problem has been solved?
    If it is, kindly Accept it as the solution. More people will benefit from it.
    Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.


    Best Regards,
    Stephen Tao