<?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 Using DATEDIFF with CALCULATE Function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DATEDIFF-with-CALCULATE-Function/m-p/1658633#M33783</link>
    <description>&lt;P&gt;I'm having an issue trying to combine the DATEDIFF statement with CALCULATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This first statement below works.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; AGE = DATEDIFF('ATI MainStage'[InitialLoanEstimateIssuesDate].[Date],TODAY(),DAY)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I try to add a filter with the CALCUALTE function below, I am getting an error that a single value for variation 'Date' for the InitalLoanEstimateIssues date cannot be determined.&amp;nbsp; Is there a way to make this work?&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AGE = CALCULATE(DATEDIFF('ATI MainStage'[InitialLoanEstimateIssuesDate].[Date],TODAY(),DAY),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER('ATI MainStage','ATI MainStage'[Milestone] IN {"Registered"}))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 10 Feb 2021 19:46:11 GMT</pubDate>
    <dc:creator>STrimpe</dc:creator>
    <dc:date>2021-02-10T19:46:11Z</dc:date>
    <item>
      <title>Using DATEDIFF with CALCULATE Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DATEDIFF-with-CALCULATE-Function/m-p/1658633#M33783</link>
      <description>&lt;P&gt;I'm having an issue trying to combine the DATEDIFF statement with CALCULATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This first statement below works.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; AGE = DATEDIFF('ATI MainStage'[InitialLoanEstimateIssuesDate].[Date],TODAY(),DAY)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I try to add a filter with the CALCUALTE function below, I am getting an error that a single value for variation 'Date' for the InitalLoanEstimateIssues date cannot be determined.&amp;nbsp; Is there a way to make this work?&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AGE = CALCULATE(DATEDIFF('ATI MainStage'[InitialLoanEstimateIssuesDate].[Date],TODAY(),DAY),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER('ATI MainStage','ATI MainStage'[Milestone] IN {"Registered"}))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Feb 2021 19:46:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DATEDIFF-with-CALCULATE-Function/m-p/1658633#M33783</guid>
      <dc:creator>STrimpe</dc:creator>
      <dc:date>2021-02-10T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using DATEDIFF with CALCULATE Function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DATEDIFF-with-CALCULATE-Function/m-p/1658882#M33789</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;You could use IF statement. Example:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Date Difference Calculate =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;IF('Table'[Type]="Registered", DATEDIFF('Table'[Date],TODAY(),DAY))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Nemanja Andic&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Feb 2021 22:01:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-DATEDIFF-with-CALCULATE-Function/m-p/1658882#M33789</guid>
      <dc:creator>nandic</dc:creator>
      <dc:date>2021-02-10T22:01:08Z</dc:date>
    </item>
  </channel>
</rss>

