<?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: WeekNum vs Month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919281#M152558</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added the comment:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 

VAR _A = CALCULATE (
        MIN ( 'Table'[Month] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Week] = EARLIER ( 'Table'[Week] ) )
    )
    //Get the min date of every week, for examnple, the 16th week is 2024-04-15
RETURN FORMAT(_A,"MMM-YY")
//format the column to "MMM-YY"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;The outcome of variable _A:&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;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 05:50:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-15T05:50:26Z</dc:date>
    <item>
      <title>WeekNum vs Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3915922#M152440</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;am looking for column formula. I&lt;SPAN&gt;f week number continuous to next month I need to get previous month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1bfwezY4csol5VysQWx-alwF9VCEGbKGQ/view?usp=drive_link" target="_self"&gt;Sample file&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 05:18:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3915922#M152440</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2024-05-14T05:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNum vs Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3915956#M152442</link>
      <description>&lt;P&gt;Can you post an example of what you expect to see?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 05:33:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3915956#M152442</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-05-14T05:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNum vs Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3915988#M152444</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected result is in sample pbix file(already shared). am looking for column formula(new column)&amp;nbsp;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;f week number continuous to next month I need to get previous month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Link:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://drive.google.com/file/d/1bfwezY4csol5VysQWx-alwF9VCEGbKGQ/view?usp=drive_link" target="_self" rel="nofollow noopener noreferrer"&gt;Sample file&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chandrashekar B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 05:49:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3915988#M152444</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2024-05-14T05:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNum vs Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919149#M152553</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your files are set with access permissions, and I'm requesting access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 05:07:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919149#M152553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-15T05:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNum vs Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919156#M152554</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check below link.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample File:&amp;nbsp;&lt;A href="https://docs.google.com/spreadsheets/d/17waFsy38hvRO-gqJlWSP26Tx0dmB4qts/edit?usp=sharing&amp;amp;ouid=116686112837861037810&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;Sample File&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 05:08:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919156#M152554</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2024-05-15T05:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNum vs Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919196#M152556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try this:&lt;/P&gt;
&lt;P&gt;Create a calculated column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
FORMAT (
    CALCULATE (
        MIN ( 'Table'[Month] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Week] = EARLIER ( 'Table'[Week] ) )
    ),
    "MMM-YY"
)
&lt;/LI-CODE&gt;
&lt;P&gt;The result is as follow:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 05:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919196#M152556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-15T05:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNum vs Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919215#M152557</link>
      <description>&lt;P&gt;Thank you it is working perfectly. Can you please explain how it works in steps please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 05:36:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919215#M152557</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2024-05-15T05:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: WeekNum vs Month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919281#M152558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349843" data-lia-user-login="Chandrashekar" class="lia-mention lia-mention-user"&gt;Chandrashekar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I added the comment:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 

VAR _A = CALCULATE (
        MIN ( 'Table'[Month] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Week] = EARLIER ( 'Table'[Week] ) )
    )
    //Get the min date of every week, for examnple, the 16th week is 2024-04-15
RETURN FORMAT(_A,"MMM-YY")
//format the column to "MMM-YY"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;The outcome of variable _A:&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;Best Regards&lt;/P&gt;
&lt;P&gt;Zhengdong Xu&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 05:50:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/WeekNum-vs-Month/m-p/3919281#M152558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-15T05:50:26Z</dc:date>
    </item>
  </channel>
</rss>

