<?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 calculate days between due date and today in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3338383#M125241</link>
    <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;am having issues with a DAX measure, if i create it in PBI Desktop the measure works. If i create the DAX statement in Azure Analysis server and i refresh the data it is not giving issues so you might think it will work. FYI, the dataset i used in PBI desktop is the same as in AAS.&lt;/P&gt;&lt;P&gt;This is the DAX statement used:&amp;nbsp;&lt;/P&gt;&lt;P&gt;DaysDifference =&lt;BR /&gt;VAR DueDateFromDimensionalTable =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('[Dim_DueDate]'[DateValue])&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;DATEDIFF(TODAY(), DueDateFromDimensionalTable, DAY)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once uploaded to PBI service it is not working:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;not sure what goes wrong and, even more important, how to solve this.&lt;/P&gt;&lt;P&gt;Hope someone can help....&lt;/P&gt;&lt;P&gt;thanks!!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 11:06:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-19T11:06:06Z</dc:date>
    <item>
      <title>calculate days between due date and today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3338383#M125241</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;am having issues with a DAX measure, if i create it in PBI Desktop the measure works. If i create the DAX statement in Azure Analysis server and i refresh the data it is not giving issues so you might think it will work. FYI, the dataset i used in PBI desktop is the same as in AAS.&lt;/P&gt;&lt;P&gt;This is the DAX statement used:&amp;nbsp;&lt;/P&gt;&lt;P&gt;DaysDifference =&lt;BR /&gt;VAR DueDateFromDimensionalTable =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('[Dim_DueDate]'[DateValue])&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;DATEDIFF(TODAY(), DueDateFromDimensionalTable, DAY)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once uploaded to PBI service it is not working:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;not sure what goes wrong and, even more important, how to solve this.&lt;/P&gt;&lt;P&gt;Hope someone can help....&lt;/P&gt;&lt;P&gt;thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 11:06:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3338383#M125241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-19T11:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days between due date and today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3338681#M125262</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Please try this, I hope this helps you!&lt;BR /&gt;DaysDifference =&lt;BR /&gt;VAR DueDateFromDimensionalTable =&lt;BR /&gt;MAX('[Dim_DueDate]'[DateValue])&lt;BR /&gt;RETURN&lt;BR /&gt;DATEDIFF(DueDateFromDimensionalTable,TODAY(),DAY)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 13:14:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3338681#M125262</guid>
      <dc:creator>Mahesh0016</dc:creator>
      <dc:date>2023-07-19T13:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days between due date and today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3338765#M125276</link>
      <description>&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have modified DAX, will have to wait till tomorrow.&lt;/P&gt;&lt;P&gt;Will let you know if it is okay or not.&lt;/P&gt;&lt;P&gt;In the meantime, thanks for your swift reponse, appreciate it!!!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 13:56:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3338765#M125276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-19T13:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: calculate days between due date and today</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3340512#M125368</link>
      <description>&lt;P&gt;hi Mahesh,&amp;nbsp;&lt;/P&gt;&lt;P&gt;as expected, the change did not work... sorry! This is the error message i receive when using the measure:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the weird thing is, in PBI Desktop (use exactly the same dataset) it is working properly (DAX Statement here was not changed to the specs from you)=&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So, i added the DAX to the Azure Analytic Service cube and after Deployment to PBI service, it did not work anymore. Am confused.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 09:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculate-days-between-due-date-and-today/m-p/3340512#M125368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-20T09:46:05Z</dc:date>
    </item>
  </channel>
</rss>

