<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need Help to apply sorting in dynamic created column and rows header in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1282375#M21888</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- Well, worst case scenario, you have one massive SWITCH(TRUE()...) statement. So basically:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ADDCOLUMNS(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;table&amp;gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "Sort",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SWITCH(TRUE(),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Jan",1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Feb",2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Mar",3,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Q1",1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Q2",2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "W1",1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "W2",2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "W3",3,&lt;/P&gt;
&lt;P&gt;&amp;lt;etc&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
    <pubDate>Sun, 09 Aug 2020 11:42:01 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-08-09T11:42:01Z</dc:date>
    <item>
      <title>Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281778#M21864</link>
      <description>&lt;P&gt;Hey Expert,&lt;/P&gt;&lt;P&gt;Here I'm with a challenging part with Power BI.&lt;/P&gt;&lt;P&gt;I'm creating a report similar to the tableau. &lt;A href="https://public.tableau.com/profile/lintao#!/vizhome/Healthcare-PatientStays/Analysis-Seasonality" target="_self"&gt;Analysis-Seasonality: Link&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above image, I have a dynamic slicer &lt;STRONG&gt;year * week, year * quarter&lt;/STRONG&gt;, etc. based on this slicer selection header gets change.&lt;/P&gt;&lt;P&gt;Let's say &lt;STRONG&gt;year * week&amp;nbsp;&lt;/STRONG&gt;is selected, then the &lt;STRONG&gt;year&lt;/STRONG&gt; will be displayed on row header, and &lt;STRONG&gt;week&lt;/STRONG&gt; will be on the column header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so help need in, If I click on&amp;nbsp;&lt;STRONG&gt;Year * Week&lt;/STRONG&gt;&amp;nbsp;year row header and column header should be in sorted form ascending or descending whatever. &lt;STRONG&gt;Year&lt;/STRONG&gt; (2015, 2016, 2017, etc.) in row header &amp;amp;&amp;nbsp;&lt;STRONG&gt;Weeks&lt;/STRONG&gt; (w1, w2, w3, and so on) in columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly when users click on other options like &lt;STRONG&gt;Month * Hour&amp;nbsp;&lt;/STRONG&gt;from slicer then both row header and column header should be in sorted form like Month (Jan, Feb, Mar, etc.) &amp;amp; Hour (0, 1, 2, 3, 4, 5, etc.). That's thing is not getting sort out by me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help how can I sort this matrix.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here is the link of the .pbix file for reference&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/cjmt597dba3dsf5/HeathCare%20-%20Seasonality%20Analysis.pbix?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/cjmt597dba3dsf5/HeathCare%20-%20Seasonality%20Analysis.pbix?dl=0&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Last thing I also want to hide empty/zero rows or column values for that&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I have applied greater than zero checks on visual level filters but it's not working. Please help&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 08 Aug 2020 16:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281778#M21864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-08T16:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281819#M21866</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- Hard to follow. You might need the Complex Selector -&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise,&amp;nbsp;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 14:49:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281819#M21866</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-08T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281834#M21867</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I've updated my question with a good explanation. Can you please look into it again&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 15:02:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281834#M21867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-08T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281859#M21868</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- I'm either missing it or it is still not clear. You say you want to dynamically sort the matrix but I don't see where you specify how you want the matrix sorted. For the 0 stuff, just implement a meausure that works like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; VAR __Calc = &amp;lt;Some Calculation&amp;gt;&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF(__Calc &amp;lt;= 0,BLANK(),__Calc)&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 15:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281859#M21868</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-08T15:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281872#M21869</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just cleaned the description for better understanding, let me explain with an example.&lt;/P&gt;&lt;P&gt;If I click on&amp;nbsp;&lt;STRONG&gt;Year * Week&lt;/STRONG&gt;&amp;nbsp;year row header and column header should be in sorted form ascending or descending whatever. &lt;STRONG&gt;Year&lt;/STRONG&gt; (2015, 2016, 2017, etc.) in row header &amp;amp;&amp;nbsp;&lt;STRONG&gt;Weeks&lt;/STRONG&gt; (w1, w2, w3, and so on) in columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similarly when users click on other options like &lt;STRONG&gt;Month * Hour&amp;nbsp;&lt;/STRONG&gt;from slicer then both row header and column header should be in sorted form like Month (Jan, Feb, Mar, etc.) &amp;amp; Hour (0, 1, 2, 3, 4, 5, etc.). That's thing is not getting sort out by me.&lt;/P&gt;&lt;P&gt;Not sure about your DAX is for sorting headers or something else?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 16:08:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281872#M21869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-08T16:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281909#M21870</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you need your soring to work right, your weeks should be like W01, W02 . . .&amp;nbsp; .W10, so on.&lt;BR /&gt;&lt;BR /&gt;Change it from W1 to W01 and the same up to W9.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the Thumbs-Up icon on the right if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 17:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281909#M21870</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-08-08T17:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281918#M21871</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&amp;nbsp;- My DAX was for removing 0 values and instead return blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, couple things.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 1. I implemented my DAX in your measure so that zeros are not displayed (updated PBIX attached below sig)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 2. You will need to implement a Sort By column on your Quarters column and potentially your Values column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached below sig is the updated PBIX file with minor changes. I did not implement sort by columns.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 18:08:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1281918#M21871</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-08T18:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1282249#M21878</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I can convert it to W01 but will it automatically sort headers?&lt;/P&gt;&lt;P&gt;PBIX is attached please apply your changes and show me sorting on headers.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 05:53:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1282249#M21878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-09T05:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1282251#M21879</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You've resolved my 2nd problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Nice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding sorting,&lt;/P&gt;&lt;P&gt;you are right we have to write some calculated column like sort by. But I really confuse how it would be possible since I've multiple things in columns &amp;amp; rows like (Year number, Month Name, Week Name, Hour, quarter number, etc).&lt;/P&gt;&lt;P&gt;How I'll create sort column which will decide to sort based on slicer selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 06:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1282251#M21879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-09T06:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1282375#M21888</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- Well, worst case scenario, you have one massive SWITCH(TRUE()...) statement. So basically:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ADDCOLUMNS(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;table&amp;gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "Sort",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SWITCH(TRUE(),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Jan",1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Feb",2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Mar",3,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Q1",1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "Q2",2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "W1",1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "W2",2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [Column] = "W3",3,&lt;/P&gt;
&lt;P&gt;&amp;lt;etc&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 11:42:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1282375#M21888</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-09T11:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1301102#M22532</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This really works &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've recreated the matrix to remove any sorting applied on the table.&lt;/P&gt;&lt;P&gt;then I've tried to apply weeks number like this... this is working and automatically applying header sort my goodness. It may built-in features. I've created&amp;nbsp;Hour column like H01, H02, H03...H24 so on,&lt;/P&gt;&lt;P&gt;then created&amp;nbsp;Week number column like W01, W02, W03 ... W52 so on,&lt;/P&gt;&lt;P&gt;then created&amp;nbsp;Month number column like M01, M02, M03 ... M12 so on,&lt;/P&gt;&lt;P&gt;then created&amp;nbsp;Day number of month column like D01, D02, D03...D31 So on.&lt;/P&gt;&lt;P&gt;all the above column headers are showing me in the sorted form that's great and really happy to see this feature.&lt;/P&gt;&lt;P&gt;the only issue is with a day of year D01, D02, D03,...D365 is not getting sorted in the right sequence.&lt;/P&gt;&lt;P&gt;What to do with it?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:05:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1301102#M22532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-17T13:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help to apply sorting in dynamic created column and rows header</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1301110#M22534</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try D001, D002...D365&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the Thumbs-Up icon if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:07:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-to-apply-sorting-in-dynamic-created-column-and-rows/m-p/1301110#M22534</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-08-17T13:07:38Z</dc:date>
    </item>
  </channel>
</rss>

