Forum Discussion

tylerbostedt's avatar
tylerbostedt
New Member
1 year ago
Solved

Sort Text Data in Visual from Most to Least

I am developing a dashboard that will show the top skills our training program is each row is a specific employee with the skills. When I look at the table in Power Bi, it looks something like this:

 

When I show it as a bar chart, it shows something like this. I tried to sort the axis by the skills, but it will only sort is alphabetically.

I am looking to sort the axis based on the total sum of the skills. For example, AI for Bussiness should be #1 and so on. 

 

  • Jai-Rathinavel's avatar
    Jai-Rathinavel
    1 year ago

    tylerbostedt You can unpivot the six skill columns like below example and display the values in a bar chart with Attributes as a legend

     

    After Unpivotting table looks like this, now load this table.

     

    Front end Bar visual:

     

    Did I answer your question ? If yes, please mark my post as a solution.

     

    Thanks,

    Jai ğŸ™‚

4 Replies

  • Hi tylerbostedt ,

     

    You will find an option to sort the bar chart visual based on a aggregated field. Have you tried that ? Attaching a refrence image below. Here I have sorted count of products in descending order.

     

     

    Did I answer your question ? If yes, please mark my post as a solution.

     

    Thanks,

    Jai ğŸ™‚

    • tylerbostedt's avatar
      tylerbostedt
      New Member

      I was only able to sort the axis by the count of one of the columns, this is the list: 

       

       

      This was the result: 

       

      • Jai-Rathinavel's avatar
        Jai-Rathinavel
        Super User

        tylerbostedt You can unpivot the six skill columns like below example and display the values in a bar chart with Attributes as a legend

         

        After Unpivotting table looks like this, now load this table.

         

        Front end Bar visual:

         

        Did I answer your question ? If yes, please mark my post as a solution.

         

        Thanks,

        Jai ğŸ™‚