<?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: Hello Need help with week sorting in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227509#M118253</link>
    <description>&lt;P&gt;To sort weeks create a week id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weekid =&lt;/P&gt;&lt;P&gt;VAR&amp;nbsp; _y = Year(min('table'[Date]))&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;WEEKNUM('table'[Date],2) + (YEAR('table'[Date]) - _min) *53&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 16:12:50 GMT</pubDate>
    <dc:creator>eliasayyy</dc:creator>
    <dc:date>2023-05-09T16:12:50Z</dc:date>
    <item>
      <title>Hello Need help with week sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227502#M118252</link>
      <description>&lt;P&gt;Hello, I have created below column and when I am adding it to slicer it is not giving me correct sorting order. how can I fix it?&lt;/P&gt;&lt;P&gt;WeekEnding =&lt;BR /&gt;VAR myWeekNum = WEEKNUM([Date])&lt;BR /&gt;VAR myYear = YEAR([Date])&lt;BR /&gt;VAR myEndDate = CALCULATE(MAX([Date]),FILTER(ALL(DateSlicer),YEAR([Date])=myYear &amp;amp;&amp;amp; DateSlicer[WeekNum]=myWeekNum &amp;amp;&amp;amp; DateSlicer[WeekDay]=6))&lt;BR /&gt;VAR myEndDate1 = IF(NOT(ISBLANK(myEndDate)),myEndDate,CALCULATE(MAX([Date]),FILTER(ALL(DateSlicer),YEAR([Date])=myYear+1 &amp;amp;&amp;amp; DateSlicer[WeekNum]=1 &amp;amp;&amp;amp; DateSlicer[WeekDay]=6)))&lt;BR /&gt;VAR myEndDate2 = IF(NOT(ISBLANK(myEndDate1)),myEndDate1,MAX([Date]))&lt;BR /&gt;RETURN " Friday " &amp;amp; myEndDate2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 16:08:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227502#M118252</guid>
      <dc:creator>davehardikkumar</dc:creator>
      <dc:date>2023-05-09T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Need help with week sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227509#M118253</link>
      <description>&lt;P&gt;To sort weeks create a week id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weekid =&lt;/P&gt;&lt;P&gt;VAR&amp;nbsp; _y = Year(min('table'[Date]))&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;WEEKNUM('table'[Date],2) + (YEAR('table'[Date]) - _min) *53&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 16:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227509#M118253</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-09T16:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Need help with week sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227524#M118255</link>
      <description>&lt;P&gt;I am using slicer and I am using weekending column from above post. how would your column help me to sort weekending column?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 16:22:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227524#M118255</guid>
      <dc:creator>davehardikkumar</dc:creator>
      <dc:date>2023-05-09T16:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Need help with week sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227533#M118256</link>
      <description>&lt;P&gt;Can you please show me a sample of th results?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 16:28:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227533#M118256</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-09T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Need help with week sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227684#M118269</link>
      <description>&lt;P&gt;your soultion works fine. but what I want is I am trying to add different column on slicer and how can I sort it&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;in above screenshot, weeksortid is your calculation which is working fine but and I want to sort it by Weekendingtest column in slicer. how can I achieve that?&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 18:50:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227684#M118269</guid>
      <dc:creator>davehardikkumar</dc:creator>
      <dc:date>2023-05-09T18:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hello Need help with week sorting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227819#M118284</link>
      <description>&lt;P&gt;Press on your column where you have put the values for the slicer , you will find in column tools above something called sort column by , pressit and choose by weeksort column this should fix it&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 21:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Hello-Need-help-with-week-sorting/m-p/3227819#M118284</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-09T21:22:07Z</dc:date>
    </item>
  </channel>
</rss>

