<?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: Retrieve Previous Month Data from Date Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982066#M154404</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="738384" data-lia-user-login="xifeng_L" class="lia-mention lia-mention-user"&gt;xifeng_L&lt;/a&gt;&amp;nbsp; Brilliant solution. You are applying the same method as I am using when it comes to comparing current versus previous. period.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jun 2024 17:59:45 GMT</pubDate>
    <dc:creator>BIstvan</dc:creator>
    <dc:date>2024-06-09T17:59:45Z</dc:date>
    <item>
      <title>Retrieve Previous Month Data from Date Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3981765#M154391</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have Month Column, Customer ID, Target Date. So I just want retrieve last month Target date for individual customer so I can compare their Target dates revision. Please help me on this.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 08:41:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3981765#M154391</guid>
      <dc:creator>Karthis476</dc:creator>
      <dc:date>2024-06-09T08:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Previous Month Data from Date Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982023#M154399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="756912" data-lia-user-login="Karthis476" class="lia-mention lia-mention-user"&gt;Karthis476&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to below demo.&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;LI-CODE lang="markup"&gt;Target Date of Last Month = CALCULATE(MAX('Table'[Target Date]),ALLEXCEPT('Table','Table'[Customer ID]),'Table'[Month Index]=EARLIER('Table'[Month Index])-1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key is to add an index field to the month so that we can use the current index -1 to get the previous month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;A href="https://1drv.ms/u/s!Avkq2QNvDlkrwVP2yQzmk2HVTYTn?e=hOZu8r" target="_blank"&gt;Demo - Retrieve Previous Month Data from Date Column.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 16:06:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982023#M154399</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-06-09T16:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Previous Month Data from Date Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982066#M154404</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="738384" data-lia-user-login="xifeng_L" class="lia-mention lia-mention-user"&gt;xifeng_L&lt;/a&gt;&amp;nbsp; Brilliant solution. You are applying the same method as I am using when it comes to comparing current versus previous. period.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 17:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982066#M154404</guid>
      <dc:creator>BIstvan</dc:creator>
      <dc:date>2024-06-09T17:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Previous Month Data from Date Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982085#M154408</link>
      <description>&lt;P&gt;Thank you for your response xifeng.&lt;/P&gt;&lt;P&gt;I tried it your approach however I am getting Maximum recorded date in the target column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking like below. It should retrieve exact previous month Target for each id.&lt;/P&gt;&lt;P&gt;Please help on this. Thank you &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 19:08:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982085#M154408</guid>
      <dc:creator>Karthis476</dc:creator>
      <dc:date>2024-06-09T19:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Previous Month Data from Date Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982303#M154412</link>
      <description>&lt;P&gt;I guess you're missing the month-1 filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, base on your latest data, you can try below expression.&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;LI-CODE lang="markup"&gt;Result = CALCULATE(MAX('Table'[Target Date]),ALLEXCEPT('Table','Table'[ID]),PARALLELPERIOD('Table'[Month],-1,MONTH))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 02:12:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982303#M154412</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-06-10T02:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Previous Month Data from Date Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982516#M154414</link>
      <description>&lt;P&gt;It's working 🥳&lt;/P&gt;&lt;P&gt;Thank you so much xifeng.. you're a &lt;span class="lia-unicode-emoji" title=":star:"&gt;⭐&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 04:12:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3982516#M154414</guid>
      <dc:creator>Karthis476</dc:creator>
      <dc:date>2024-06-10T04:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Previous Month Data from Date Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3997994#M155491</link>
      <description>&lt;P&gt;Hi Xileng,&lt;/P&gt;&lt;P&gt;I just one more help from you. In the above example I have a customer id column. Suppose if I get a new I'd then this formula should reflect blank in result column. Can you able to help me on this please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above example is reflecting current month top most date for new id instead of blank.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 10:22:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3997994#M155491</guid>
      <dc:creator>Karthis476</dc:creator>
      <dc:date>2024-06-18T10:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Previous Month Data from Date Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3998445#M155610</link>
      <description>&lt;P&gt;Sorry, I don't quite understand what you mean. Can you explain it in more detail with pictures?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 14:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Retrieve-Previous-Month-Data-from-Date-Column/m-p/3998445#M155610</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-06-18T14:28:24Z</dc:date>
    </item>
  </channel>
</rss>

