Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Column sorting in matrix visual - Sort By Column not working

I am using the Matrix visual Trying to sort by a column that is not shown in the Matrix. I applied sorting at the Data Model, but this is having no effect on the Visual level. This is what I am trying to do :

 

  1. Date column - MM/DD/YYYY, this is the column I want to use to sort in Descending order.
  2. Date_MM_YYYY column - this is the column displayed in visual, it is a MMM YYYYY format (E.g. Aug 2018).

If I display the Date column it will use the sort order from the Model.

9 Replies

  • danb's avatar
    danb
    Resolver I

    Anonymous

    can you provide a sample of your data?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Some sample data. First I tried creating a calculated column at the Model Level to convert MM/DD/YYYY (Datetime in SQL) to MMM YYYY (Eg. Aug 2018...). This didn't work. I removed the calculated column and actually created similar column but in SQL code. Column is correctly displayed in the Data Model (see above), and the sort is correct (by the actuall full MM/DD/YYY descending order, see above). Nothing seems to work. It seems like only if a column is actually shown in the visual will the visual sort by it.

       

      Notes :

       

      1. Using Power BI Desktop RS/PBIRS March 2018 version.
      2. Using the Matrix visual.