<?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: Week number with in Quarter in column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2602691#M75293</link>
    <description>&lt;P&gt;Thank you &lt;STRONG&gt;SO MUCH&lt;/STRONG&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="402561" data-lia-user-login="kitgo2" class="lia-mention lia-mention-user"&gt;kitgo2&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I need to get weeks by quarter .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I need to show 13 weeks in th Visual for each quarter (ex: for Quarter 3 (April-June&amp;nbsp;))&lt;/P&gt;&lt;P&gt;Previous weeks with - and future weeks with + sign like the way in this screen shot. TIA&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;</description>
    <pubDate>Mon, 27 Jun 2022 03:43:30 GMT</pubDate>
    <dc:creator>Puja</dc:creator>
    <dc:date>2022-06-27T03:43:30Z</dc:date>
    <item>
      <title>Week number with in Quarter in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2602324#M75269</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;How can I get the&amp;nbsp; Date format like this? TIA&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;</description>
      <pubDate>Sun, 26 Jun 2022 20:56:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2602324#M75269</guid>
      <dc:creator>Puja</dc:creator>
      <dc:date>2022-06-26T20:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Week number with in Quarter in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2602380#M75274</link>
      <description>&lt;P&gt;Week# = if ('Calendar'[Date] = TODAY(),"Current", if (year(Today()) = Year('Calendar'[Date]),"Week " &amp;amp; ( WEEKNUM('Calendar'[Date],2) - WEEKNUM(today(),2)) ,"Week " &amp;amp; ( WEEKNUM('Calendar'[Date],2) - (WEEKNUM(today(),2) + 52))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start of week = if(WEEKDAY('Calendar'[Date],2) = 1, 'Calendar'[Date]) -- filter visual to only select non blanks or filter out only mondays&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Format = 'Calendar'[Week#] &amp;amp; " " &amp;amp; UNICHAR(10) &amp;amp;&lt;BR /&gt;FORMAT('Calendar'[Date],"dd-mmm") &amp;amp; UNICHAR(10) &amp;amp; "Monday - Sunday"&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2022 23:48:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2602380#M75274</guid>
      <dc:creator>kitgo2</dc:creator>
      <dc:date>2022-06-26T23:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Week number with in Quarter in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2602691#M75293</link>
      <description>&lt;P&gt;Thank you &lt;STRONG&gt;SO MUCH&lt;/STRONG&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="402561" data-lia-user-login="kitgo2" class="lia-mention lia-mention-user"&gt;kitgo2&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I need to get weeks by quarter .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I need to show 13 weeks in th Visual for each quarter (ex: for Quarter 3 (April-June&amp;nbsp;))&lt;/P&gt;&lt;P&gt;Previous weeks with - and future weeks with + sign like the way in this screen shot. TIA&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;</description>
      <pubDate>Mon, 27 Jun 2022 03:43:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2602691#M75293</guid>
      <dc:creator>Puja</dc:creator>
      <dc:date>2022-06-27T03:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Week number with in Quarter in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2608406#M75569</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="405743" data-lia-user-login="Puja" class="lia-mention lia-mention-user"&gt;Puja&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; I need to show 13 weeks in th Visual for each quarter&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(ex: for Quarter 3 (April-June&amp;nbsp;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can try this, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(1) create a calendar table&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;calendar = &lt;/SPAN&gt;&lt;SPAN&gt;CALENDAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2022&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2022&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;31&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;create a week column,&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;week = &lt;/SPAN&gt;&lt;SPAN&gt;WEEKNUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;(2) create the 2 measures,&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;week = MAXX(FILTER('calendar','calendar'[Date]=MIN('Table'[Date])),[week])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
var _currentDate=DATE(2022,5,23)
var _currentWeek= MAXX(FILTER('calendar','calendar'[Date]=_currentDate),[week])
return IF([week]&amp;gt;_currentWeek-6 &amp;amp;&amp;amp; [week]&amp;lt;_currentWeek+6,IF(([week]-_currentWeek)&amp;gt;0, "Week +"&amp;amp;([week]-_currentWeek),"Week "&amp;amp;([week]-_currentWeek)))&lt;/LI-CODE&gt;
&lt;P&gt;result&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 06:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2608406#M75569</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-06-29T06:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Week number with in Quarter in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2628090#M76764</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;SPAN class=""&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296930" data-lia-user-login="v-xiaotang" class="lia-mention lia-mention-user"&gt;v-xiaotang&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;This works perfoct with the static date&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;var _currentDate=DATE(2022,5,23) , when i added Today(), it s not working . I want it to be dynamic .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If its current week then "Current", past weeks&amp;nbsp; - and future weeks with + symbol with in the quarter.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is past screenshot example.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 15:32:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Week-number-with-in-Quarter-in-column/m-p/2628090#M76764</guid>
      <dc:creator>Puja</dc:creator>
      <dc:date>2022-07-08T15:32:31Z</dc:date>
    </item>
  </channel>
</rss>

