Home Business Intelligence Fast Ideas: Find out how to Type Matrix by Column in Descending Order

Fast Ideas: Find out how to Type Matrix by Column in Descending Order

0
Fast Ideas: Find out how to Type Matrix by Column in Descending Order

[ad_1]

How to Sort Matrix by Column in Descending Order

At this time Microsoft launched Energy BI Desktop March 2020 which I hoped that it features a easy characteristic on Matrix visible to have the ability to kind the Martix by column in descending order, however, it doesn’t. So, on this put up I shortly present you the best way to kind Matrix by column in descending order.

Right here is the state of affairs. Considered one of my clients is constructing a report in Energy BI exhibiting gross sales by 12 months, Month and Day of Week in a Matrix as under.

Sorting Matrix Visual in Power BI
Sorting Matrix Visible in Energy BI

Every part appears advantageous! However trying on the Matrix sorting shortly reveals that such characteristic is NOT obtainable (YET). However the buyer want to see the Matrix sorted by 12 months in descending order, one thing like this.

Sorting Matrix by Column Headers in Descending Order
Sorting Matrix by Column Headers in Descending Order

Right here is the answer which is tremendous easy.

  • Add a brand new “12 months” column, both in Energy Question or utilizing DAX. I exploit DAX simply to maintain it so simple as potential
MatrixSortDescYear="Date"[Year]
  • Add one other column which retains the order of the brand new “MatrixSortDescYear” in descending order like under:
MatrixSortDescYearOrder = -( 'Date'[Year] )
  • Type the primary column by the second
Power BI Desktop Sort Column by another Column
Energy BI Desktop Type Column by one other Column
  • Now put the “MatrixSortDescYear” in columns part in Matrix and take away earlier “12 months” column
Sort Matrix by Column in Descending Order

Voila! Simple, easy and neat!

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here