Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Need Help to apply sorting in dynamic created column and rows header

Hey Expert,

Here I'm with a challenging part with Power BI.

I'm creating a report similar to the tableau. Analysis-Seasonality: Link 

I've been created development-related work in power bi similar to this tableau dashboard. but unfortunately, in the end, I'm stuck on the dynamic header sorting.

 

I need help to sort the matrix's dynamic column and rows header. Dynamic means based on the slicer selection, column, and rows header get changed. As in the below image.

 

 

 

In the above image, I have a dynamic slicer year * week, year * quarter, etc. based on this slicer selection header gets change.

Let's say year * week is selected, then the year will be displayed on row header, and week will be on the column header.

 

so help need in, If I click on Year * Week year row header and column header should be in sorted form ascending or descending whatever. Year (2015, 2016, 2017, etc.) in row header & Weeks (w1, w2, w3, and so on) in columns

 

Similarly when users click on other options like Month * Hour from slicer then both row header and column header should be in sorted form like Month (Jan, Feb, Mar, etc.) & Hour (0, 1, 2, 3, 4, 5, etc.). That's thing is not getting sort out by me.

 

Please help how can I sort this matrix.

 
 
Last thing I also want to hide empty/zero rows or column values for that I have applied greater than zero checks on visual level filters but it's not working. Please help
Thanks
  • Fowmy's avatar
    Fowmy
    6 years ago

    Anonymous 

    If you need your soring to work right, your weeks should be like W01, W02 . . .  .W10, so on.

    Change it from W1 to W01 and the same up to W9.

    ________________________

    Did I answer your question? Mark this post as a solution, this will help others!.

    Click on the Thumbs-Up icon on the right if you like this reply 🙂

    YouTube, LinkedIn 

11 Replies