<?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: Month Series in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3069076#M106409</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507766" data-lia-user-login="esam" class="lia-mention lia-mention-user"&gt;esam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is no secret, as long as you know the DATEDIFF function, which returns the number of periods between two dates. In this case, the period is MONTH.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general,&amp;nbsp; learning DAX by doing. Try to bring change and value to your daily work with DAX.&amp;nbsp; If time allows, come back to the community and try to contribute.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 13:41:30 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-02-08T13:41:30Z</dc:date>
    <item>
      <title>Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066449#M106188</link>
      <description>&lt;P&gt;Hi I have date table from 2023 to 2025 i want a column with month series where 36 being december 2025 and 1 being January 2023.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 14:40:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066449#M106188</guid>
      <dc:creator>esam</dc:creator>
      <dc:date>2023-02-07T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066568#M106199</link>
      <description>&lt;P&gt;You could try a calculated column like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Month series =
VAR ReferenceDate = 'Date'[Date]
VAR PrevMonths =
    CALCULATETABLE (
        VALUES ( 'Date'[Year month] ),
        REMOVEFILTERS ( 'Date' ),
        'Date'[Date] &amp;lt; ReferenceDate
    )
RETURN
    COUNTROWS ( PrevMonths ) + 1
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:29:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066568#M106199</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-07T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066586#M106201</link>
      <description>&lt;P&gt;Removefilter with comparison operator is not correct&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:38:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066586#M106201</guid>
      <dc:creator>esam</dc:creator>
      <dc:date>2023-02-07T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066598#M106203</link>
      <description>&lt;P&gt;I think maybe you've missed a close bracket, the REMOVEFILTERS and comparison are separate.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:43:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066598#M106203</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-07T15:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066612#M106205</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;the series generated by this 13,12,....1&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:49:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066612#M106205</guid>
      <dc:creator>esam</dc:creator>
      <dc:date>2023-02-07T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066635#M106208</link>
      <description>&lt;P&gt;OK, the below works for me&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Month series = 
VAR ReferenceDate = 'Date'[Date]
VAR PrevMonths =
    CALCULATETABLE (
        DISTINCT ( 'Date'[Year month] ),
        REMOVEFILTERS ( 'Date' ),
        'Date'[Date] &amp;lt;= ReferenceDate
    )
RETURN
    COUNTROWS ( PrevMonths ) &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Feb 2023 16:02:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066635#M106208</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-07T16:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066643#M106212</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507766" data-lia-user-login="esam" class="lia-mention lia-mention-user"&gt;esam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to add a column like:&lt;/P&gt;&lt;P&gt;Month Series =&lt;/P&gt;&lt;P&gt;DATEDIFF([Date], DATE(2023, 1, 1), MONTH)+1&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 16:04:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066643#M106212</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-07T16:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066698#M106215</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution you provided gave something similar but not accurate it is giving me result in negative&amp;nbsp;&lt;/P&gt;&lt;P&gt;for jan 2023 it is one than feb 2023 0 and for december 2025 -33&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 16:44:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066698#M106215</guid>
      <dc:creator>esam</dc:creator>
      <dc:date>2023-02-07T16:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066988#M106239</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507766" data-lia-user-login="esam" class="lia-mention lia-mention-user"&gt;esam&lt;/a&gt; not sure what your Date table looks like, I simply Assumed that you have only 1 column table as Calendar[Date]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
RANKX (
    'Calendar',
    DATE ( MONTH ( 'Calendar'[Date] ), YEAR ( 'Calendra'[Date] ), 1 ),
    ,
    ASC,
    DENSE
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&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>Tue, 07 Feb 2023 21:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3066988#M106239</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2023-02-07T21:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3067180#M106247</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507766" data-lia-user-login="esam" class="lia-mention lia-mention-user"&gt;esam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;t&lt;/P&gt;&lt;P&gt;Aha, try like&lt;/P&gt;&lt;P&gt;Month Series =&lt;/P&gt;&lt;P&gt;DATEDIFF(DATE(2023, 1, 1),&amp;nbsp;[Date], MONTH)+1&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 21:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3067180#M106247</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-07T21:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3068471#M106347</link>
      <description>&lt;P&gt;Thank you for the solution&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;can you explain a bit how this logic is working here !!&amp;nbsp;&lt;/P&gt;&lt;P&gt;also how to get better with dax with real world scenarios&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 09:24:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3068471#M106347</guid>
      <dc:creator>esam</dc:creator>
      <dc:date>2023-02-08T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Month Series</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3069076#M106409</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507766" data-lia-user-login="esam" class="lia-mention lia-mention-user"&gt;esam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is no secret, as long as you know the DATEDIFF function, which returns the number of periods between two dates. In this case, the period is MONTH.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general,&amp;nbsp; learning DAX by doing. Try to bring change and value to your daily work with DAX.&amp;nbsp; If time allows, come back to the community and try to contribute.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:41:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Month-Series/m-p/3069076#M106409</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-08T13:41:30Z</dc:date>
    </item>
  </channel>
</rss>

