<?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 Dax to calaculate same period (till same date ) last year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-calaculate-same-period-till-same-date-last-year/m-p/3695611#M143716</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;as per image ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in april sales is till 9th apr 2023 but in previous year it was till 30th april&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to calculate if&amp;nbsp; in selected year/month my store is working till 10 days only then calculate sum of only 10 days in last year same month .&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 07:07:25 GMT</pubDate>
    <dc:creator>Dhrutivyasa-070</dc:creator>
    <dc:date>2024-02-13T07:07:25Z</dc:date>
    <item>
      <title>Dax to calaculate same period (till same date ) last year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-calaculate-same-period-till-same-date-last-year/m-p/3695611#M143716</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;as per image ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;in april sales is till 9th apr 2023 but in previous year it was till 30th april&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to calculate if&amp;nbsp; in selected year/month my store is working till 10 days only then calculate sum of only 10 days in last year same month .&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 07:07:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-calaculate-same-period-till-same-date-last-year/m-p/3695611#M143716</guid>
      <dc:creator>Dhrutivyasa-070</dc:creator>
      <dc:date>2024-02-13T07:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to calaculate same period (till same date ) last year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-calaculate-same-period-till-same-date-last-year/m-p/3695659#M143717</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275582" data-lia-user-login="Dhrutivyasa-070" class="lia-mention lia-mention-user"&gt;Dhrutivyasa-070&lt;/a&gt;&amp;nbsp;you can follow the below pattern&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PY Sales = 
VAR MaxDate = EDATE(MAX(Sales [Date]), -12)
VAR MinDate = EDATE(MIN( 'Calendar' [Date]), -12)
VAR LYDates =
DATESBETWEEN(
'Calendar' [Date], MinDate, MaxDate)
RETURN CALCULATE (
[Total Sales],
LYDates )&lt;/LI-CODE&gt;&lt;P&gt;Please don't forget to accept my solution if it helps. Thanks&lt;/P&gt;&lt;P&gt;Tharun&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 07:31:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-calaculate-same-period-till-same-date-last-year/m-p/3695659#M143717</guid>
      <dc:creator>tharunkumarRTK</dc:creator>
      <dc:date>2024-02-13T07:31:51Z</dc:date>
    </item>
  </channel>
</rss>

