<?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: Selected only the last week of each month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452041#M66032</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;You have data in this way?&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;BF&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 09:56:50 GMT</pubDate>
    <dc:creator>BeaBF</dc:creator>
    <dc:date>2022-04-12T09:56:50Z</dc:date>
    <item>
      <title>Selected only the last week of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2451579#M65997</link>
      <description>&lt;P&gt;Hi , I have a column : yearmonthweek, for example 20220414 (2022-04 and week 14).&lt;/P&gt;&lt;P&gt;I want to split this column into 3 and&lt;STRONG&gt; create a measure that returns the last week of each month.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example 20220417 =&amp;gt; "last week of April" etc...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 08:00:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2451579#M65997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-12T08:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selected only the last week of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2451933#M66018</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Hi!&lt;/P&gt;
&lt;P&gt;Can you paste some sample data and the expected result in explicit way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx,&lt;/P&gt;
&lt;P&gt;BF.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 09:23:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2451933#M66018</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-04-12T09:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selected only the last week of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452024#M66030</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp; I have 3 columns: Year, Month, Week&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to return the last week of each months.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example : Year = 2022 , Month = 04&amp;nbsp; and Week of april = 13,14,15,16,17&lt;/P&gt;&lt;P&gt;I want to return 04-17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 09:52:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452024#M66030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-12T09:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Selected only the last week of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452041#M66032</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;You have data in this way?&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;BF&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 09:56:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452041#M66032</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-04-12T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Selected only the last week of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452054#M66033</link>
      <description>&lt;P&gt;Yes !&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="202311" data-lia-user-login="BeaBF" class="lia-mention lia-mention-user"&gt;BeaBF&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 09:58:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452054#M66033</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-12T09:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selected only the last week of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452088#M66037</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;ok, so you can do:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Group by in the Power Query, to extract the max week corresponding to each Year-Month:&lt;BR /&gt;#"Raggruppate righe" = Table.Group(#"Modificato tipo", {"Year", "Month"}, {{"Week", each List.Max([Week]), type nullable number}})&lt;BR /&gt;in&lt;BR /&gt;#"Raggruppate righe"&lt;/LI&gt;
&lt;LI&gt;You can do it directly in the viz by adding the maximum of week:&lt;BR /&gt;&lt;img /&gt;&lt;/LI&gt;
&lt;LI&gt;Last, create a measure like this:&lt;BR /&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Misura = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Tabella[Week]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Tabella&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Tabella[Year]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Tabella[Month]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Tell me if there is something unclear, I hope it can help you!&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;BF.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 12 Apr 2022 10:18:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2452088#M66037</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2022-04-12T10:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selected only the last week of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2458543#M66410</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to my pbix file to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _maxweek =
    CALCULATE (
        MAX ( 'Table'[week] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Year] = SELECTEDVALUE ( 'Table'[Year] )
                &amp;amp;&amp;amp; 'Table'[Month] = SELECTEDVALUE ( 'Table'[Month] )
        )
    )
RETURN
    IF ( MAX ( 'Table'[week] ) = _maxweek, 1, BLANK () )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide your pbix file without privacy information and your desired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 05:17:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2458543#M66410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-15T05:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Selected only the last week of each month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2458847#M66440</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;thank you for your answer &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 09:02:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-only-the-last-week-of-each-month/m-p/2458847#M66440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-15T09:02:50Z</dc:date>
    </item>
  </channel>
</rss>

