Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Need Help with Custom Sorts

RTOs (Recovery Time Objectives) are sorted in duration order in Excel. Load Excel spreadsheet to BI and RTOs are still in duration order. However, in the charts (visuals) the duration RTO are out of orders - see below.  The sortings I found in BI are Ascending/Desending or a 'custom sort' perform on 1 values at a time (i.e. equal to or less than.

In Excel, the custom sort allows you the type in the order you've like the items to appear. The RTO duration appears in the correct in the pivot chart in Excel but in the incorrect order in BI. Seems like BI is the using the original RTO duration order and not the 'custom sorted' order.

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Thank you all for your feedback. Another issue occurs  while using the Related fir custom sorting . 

     

    I am using the RELATED DAX query and it works in some instances . Related tables 'Sheet1' and RTOTable. However, after the Related query is executed in the Sheet1 table, some values are blank even though there is an associated value.  All RTO_ID are listed except for "8" and "10". Why is this happening? See both tables below

     

    Sheet1 Table after the RELATED query is executed

    RTOTable

     

6 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion
    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you Greg for your quick response. Seems like a LOT of work for something that can be done in a few seconds, using Excel (2010) via a custom sort. The data I am using is large and though your method would yield the desired results, this method is not practical.

      I’m disappointed to learn the archaic way that Power BI does customize sorts. Again, thank you for your feedback which is greatly appreciated!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you all for your feedback. Another issue occurs  while using the Related fir custom sorting . 

       

      I am using the RELATED DAX query and it works in some instances . Related tables 'Sheet1' and RTOTable. However, after the Related query is executed in the Sheet1 table, some values are blank even though there is an associated value.  All RTO_ID are listed except for "8" and "10". Why is this happening? See both tables below

       

      Sheet1 Table after the RELATED query is executed

      RTOTable

       

      • v-yingjl's avatar
        v-yingjl
        Community Support

        Hi Anonymous ,

        Please check whether the field format is the same as the RTO table.

        For example, I have found that one of the type fields in RTO table 'Weeks 3+'  while in Sheet1 Table is 'Week 3+' so that it would return blank in the Sheet1 Table.

         

        Simliar issue with '72 Hours - 1 Week', check whether the spaces are the same etc.

         

        Best Regards,
        Community Support Team _ Yingjie Li
        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • v-yingjl's avatar
    v-yingjl
    Community Support

    Hi Anonymous ,

    In Power BI Desktop, the sort feature would be set as values field by default. If there are the same values, depends on the shared-axis based on the initial alphabetical order.

     

    For custom sort in Power BI Desktop, you can refer: 

    1. Sort a Column with a Custom Order in Power BI 
    2. Custom Sort Order Trick in Power BI & Power Pivot 

     

    Best Regards,
    Community Support Team _ Yingjie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.