<?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: Amount from today last year until yesterday current year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015463#M158224</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, You can achieve this using measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Total Sold Last Year to Yesterday = &lt;BR /&gt;VAR TodayDate = TODAY()&lt;BR /&gt;VAR StartDate = DATE(YEAR(TodayDate) - 1, MONTH(TodayDate), DAY(TodayDate))&lt;BR /&gt;VAR EndDate = TodayDate - 1&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Sold], &lt;BR /&gt;FILTER(&lt;BR /&gt;'Time', &lt;BR /&gt;'Time'[Date] &amp;gt;= StartDate &amp;amp;&amp;amp; 'Time'[Date] &amp;lt;= EndDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 11:11:32 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-06-28T11:11:32Z</dc:date>
    <item>
      <title>Amount from today last year until yesterday current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015308#M158215</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if today is 28/06/2024&lt;BR /&gt;i want the total amount of measure Sold from 28/06/2023 UNTIL 27/06/2024.&amp;nbsp;&lt;BR /&gt;I have table Time and columns Date, Year, Day, Month&lt;BR /&gt;I have measure Sold&lt;BR /&gt;&lt;BR /&gt;How i can reach this result?&lt;BR /&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 09:48:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015308#M158215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T09:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Amount from today last year until yesterday current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015445#M158222</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;You can try below measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MEASURE =
CALCULATE (
    SUM ( Table[Amount] ),
    TREATAS ( CALENDAR ( EDATE ( TODAY (), -12 ), TODAY () - 1 ), Table[Date] )
)&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;</description>
      <pubDate>Fri, 28 Jun 2024 11:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015445#M158222</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-06-28T11:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Amount from today last year until yesterday current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015463#M158224</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, You can achieve this using measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Total Sold Last Year to Yesterday = &lt;BR /&gt;VAR TodayDate = TODAY()&lt;BR /&gt;VAR StartDate = DATE(YEAR(TodayDate) - 1, MONTH(TodayDate), DAY(TodayDate))&lt;BR /&gt;VAR EndDate = TodayDate - 1&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Sold], &lt;BR /&gt;FILTER(&lt;BR /&gt;'Time', &lt;BR /&gt;'Time'[Date] &amp;gt;= StartDate &amp;amp;&amp;amp; 'Time'[Date] &amp;lt;= EndDate&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 11:11:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015463#M158224</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-06-28T11:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Amount from today last year until yesterday current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015943#M158276</link>
      <description>&lt;P&gt;thank you it works!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 15:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Amount-from-today-last-year-until-yesterday-current-year/m-p/4015943#M158276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T15:17:01Z</dc:date>
    </item>
  </channel>
</rss>

