<?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: The first day of the month a few month ago in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3228226#M118323</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I know you want to create a calculated table which will show 3 last months data to current dynamiclly.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Table =
CALCULATETABLE (
    'Full Table',
    FILTER ( 'Full Table', 'Full Table'[Month] &amp;gt;= EOMONTH ( TODAY (), -4 ) + 1 )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;DIV id="tinyMceEditor_4e96f705581ba9vrzhoumsft_0" class=""&gt;&amp;nbsp;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&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;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 06:48:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-10T06:48:46Z</dc:date>
    <item>
      <title>The first day of the month a few month ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223564#M117957</link>
      <description>&lt;P&gt;I have&amp;nbsp; a table with 2 columns: Name, month&lt;/P&gt;&lt;P&gt;The column month contains month from the past 12 months.&lt;/P&gt;&lt;P&gt;I would like to create a new talbe that will take the existing, but will filter only the last 3 month not including the current.&lt;/P&gt;&lt;P&gt;So if today is 5/2023, I would like the new table to contain only the rows with months:&lt;/P&gt;&lt;P&gt;02/2023&lt;/P&gt;&lt;P&gt;03/2023&lt;/P&gt;&lt;P&gt;04/2023&lt;/P&gt;&lt;P&gt;05/2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create it the following way:&lt;/P&gt;&lt;P&gt;Existing table name: fullTable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New table =&amp;nbsp;&lt;SPAN&gt;CALCULATETABLE (fullTable, FILTER(fullTable,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'fullTable'&lt;/SPAN&gt;&lt;SPAN&gt;[month] &amp;gt; ??????)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 07:46:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223564#M117957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-07T07:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: The first day of the month a few month ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223583#M117958</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you elaborate your case, with sufficient data and expected result directly?&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 08:34:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223583#M117958</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-07T08:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: The first day of the month a few month ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223591#M117959</link>
      <description>&lt;P&gt;In my model I have the following table:&lt;/P&gt;&lt;P&gt;Table: Full Table&lt;BR /&gt;|Name|Month|&lt;BR /&gt;|--| --- |&lt;BR /&gt;|a | 11/1/2022 |&lt;BR /&gt;|b |11/1/2022|&lt;BR /&gt;|c |11/1/2022 |&lt;BR /&gt;|c |1/1/2023 |&lt;BR /&gt;|b |2/1/2023|&lt;BR /&gt;|b |1/1/2023 |&lt;BR /&gt;|a |3/1/2023 |&lt;BR /&gt;|c |4/1/2023 |&lt;BR /&gt;|a |4/1/2023 |&lt;BR /&gt;|a |5/1/2023 |&lt;BR /&gt;|b |4/1/2023 |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create from this table a filterred table which will look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table: New Table&lt;BR /&gt;|Name|Month|&lt;BR /&gt;|--| --- |&lt;BR /&gt;|b |2/1/2023|&lt;BR /&gt;|a |3/1/2023 |&lt;BR /&gt;|c |4/1/2023 |&lt;BR /&gt;|a |4/1/2023 |&lt;BR /&gt;|a |5/1/2023 |&lt;BR /&gt;|b |4/1/2023 |&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 08:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223591#M117959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-07T08:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: The first day of the month a few month ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223617#M117963</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;P&gt;New table =&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;fullTable,&lt;BR /&gt;fullTable[month] &amp;gt;=DATE(2023,2,1)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 10:09:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223617#M117963</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-07T10:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: The first day of the month a few month ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223619#M117964</link>
      <description>&lt;P&gt;Thanks, however, I need it to be dynamic. So if today we are in May, I need the&amp;nbsp; new table to be filterred from 2/23. In June it will need to be filterred from 3/23, in 5/24 fron 2/24 etc.&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 10:13:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223619#M117964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-07T10:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: The first day of the month a few month ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223626#M117966</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if i fully get you, you may try to&lt;/P&gt;&lt;P&gt;1) plot a slicer with a new isolated table. You may create one like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Slicer = ALL(fulltable[Month])&lt;/LI-CODE&gt;&lt;P&gt;2) plot a table visual with necessary columns, but filtered with a measure like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;measure = 
IF(
    MAX(fulltable[Month])&amp;lt;SELECTEDVALUE(Slicer[Month])
        &amp;amp;&amp;amp;MAX(fulltable[Month])&amp;gt;=EDATE(SELECTEDVALUE(Slicer[Month]),-3),
    1,0
)&lt;/LI-CODE&gt;&lt;P&gt;Note: choose 1 for the meaure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 10:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3223626#M117966</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-05-07T10:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: The first day of the month a few month ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3228226#M118323</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I know you want to create a calculated table which will show 3 last months data to current dynamiclly.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Table =
CALCULATETABLE (
    'Full Table',
    FILTER ( 'Full Table', 'Full Table'[Month] &amp;gt;= EOMONTH ( TODAY (), -4 ) + 1 )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;DIV id="tinyMceEditor_4e96f705581ba9vrzhoumsft_0" class=""&gt;&amp;nbsp;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&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;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 06:48:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-first-day-of-the-month-a-few-month-ago/m-p/3228226#M118323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-10T06:48:46Z</dc:date>
    </item>
  </channel>
</rss>

