<?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 Setting Date Context in CALCULATE for PREVIOUSQUARTER in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Context-in-CALCULATE-for-PREVIOUSQUARTER/m-p/1926630#M41789</link>
    <description>&lt;P&gt;Hello, I need to set a date context of TODAY() within a CALCULATE function to properly have the PREVIOUSQUARTER evaluate what the previous quarter should be instead of taking the very first date of the Date Table.&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;Registrations Prev Qtr = CALCULATE(COUNT(Registration[Id]), PREVIOUSQUARTER(DimDate[Date]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is the DAX calculation right now. Then, I can apply a filter with the filter pane to set the "Date" to today for that specific visual. However, this breaks down when I need to use the measure above to create another measure to calculate a ratio with DIVIDE.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 20:31:54 GMT</pubDate>
    <dc:creator>crisher</dc:creator>
    <dc:date>2021-06-28T20:31:54Z</dc:date>
    <item>
      <title>Setting Date Context in CALCULATE for PREVIOUSQUARTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Context-in-CALCULATE-for-PREVIOUSQUARTER/m-p/1926630#M41789</link>
      <description>&lt;P&gt;Hello, I need to set a date context of TODAY() within a CALCULATE function to properly have the PREVIOUSQUARTER evaluate what the previous quarter should be instead of taking the very first date of the Date Table.&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;Registrations Prev Qtr = CALCULATE(COUNT(Registration[Id]), PREVIOUSQUARTER(DimDate[Date]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is the DAX calculation right now. Then, I can apply a filter with the filter pane to set the "Date" to today for that specific visual. However, this breaks down when I need to use the measure above to create another measure to calculate a ratio with DIVIDE.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 20:31:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Context-in-CALCULATE-for-PREVIOUSQUARTER/m-p/1926630#M41789</guid>
      <dc:creator>crisher</dc:creator>
      <dc:date>2021-06-28T20:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date Context in CALCULATE for PREVIOUSQUARTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Context-in-CALCULATE-for-PREVIOUSQUARTER/m-p/1927261#M41807</link>
      <description>&lt;P&gt;does this work?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Registrations Prev Qtr = CALCULATE(CALCULATE(COUNT(Registration[Id]), PREVIOUSQUARTER(DimDate[Date])),DimDate[Date]=TODAY())&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:32:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Context-in-CALCULATE-for-PREVIOUSQUARTER/m-p/1927261#M41807</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-06-29T06:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date Context in CALCULATE for PREVIOUSQUARTER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Context-in-CALCULATE-for-PREVIOUSQUARTER/m-p/1927943#M41827</link>
      <description>&lt;P&gt;It did indeed. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 10:08:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Context-in-CALCULATE-for-PREVIOUSQUARTER/m-p/1927943#M41827</guid>
      <dc:creator>crisher</dc:creator>
      <dc:date>2021-06-29T10:08:12Z</dc:date>
    </item>
  </channel>
</rss>

