<?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: Measure with DateAdd returns NaN in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447075#M131182</link>
    <description>&lt;P&gt;Thanks, but price is already a measure with sum(table[price]), my fault, I should have added this as information.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2023 05:38:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-26T05:38:59Z</dc:date>
    <item>
      <title>Measure with DateAdd returns NaN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3446039#M131111</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I`m struggling with the measure dateAdd which delivers NaN, which I don´t understand.&lt;/P&gt;&lt;P&gt;The value in the table which I am searching for looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure which I am using is&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ValuePrevMonth =&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Price]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(Table&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;when put next to each other the first entry is there, but the second is shown as NaN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, my understanding was that at least 0 should be returned. There is no calculation or division through zero, so why NaN?&lt;/P&gt;&lt;P&gt;In case of the dateAdd function: which key is used to do a lookup? Do I need an extra mapping to a calendar table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 25 Sep 2023 13:43:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3446039#M131111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-25T13:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with DateAdd returns NaN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447073#M131181</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, If [price] is a column, then try changing the dax to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ValuePrevMonth =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(sum('Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Price])&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;('Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,-&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MONTH&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 05:36:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447073#M131181</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-09-26T05:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with DateAdd returns NaN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447075#M131182</link>
      <description>&lt;P&gt;Thanks, but price is already a measure with sum(table[price]), my fault, I should have added this as information.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 05:38:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447075#M131182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-26T05:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with DateAdd returns NaN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447105#M131184</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Check the data type of date column. The dax seems to work fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 06:07:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447105#M131184</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-09-26T06:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with DateAdd returns NaN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447114#M131185</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="615042" data-lia-user-login="ChiragGarg2512" class="lia-mention lia-mention-user"&gt;ChiragGarg2512&lt;/a&gt;&amp;nbsp;The data type of the column is already from kind date. I´m wondering if I need an index or sth like that?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 06:14:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447114#M131185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-26T06:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with DateAdd returns NaN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447141#M131189</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;, can some sample data for 10 to 12 rows be provided in tabular form. There shouldn't be a need to create a new column.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 06:25:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3447141#M131189</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-09-26T06:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with DateAdd returns NaN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3451127#M131468</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="615042" data-lia-user-login="ChiragGarg2512" class="lia-mention lia-mention-user"&gt;ChiragGarg2512&lt;/a&gt;&amp;nbsp;I think I have found the problem. This is the table how it looks like.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Article&lt;/TD&gt;&lt;TD&gt;Price&lt;/TD&gt;&lt;TD&gt;Delivery&lt;/TD&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4251203005&lt;/TD&gt;&lt;TD&gt;23,04 €&lt;/TD&gt;&lt;TD&gt;Express GmbH TEST&lt;/TD&gt;&lt;TD&gt;01.07.2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4251203005&lt;/TD&gt;&lt;TD&gt;23,05 €&lt;/TD&gt;&lt;TD&gt;Express GmbH TEST&lt;/TD&gt;&lt;TD&gt;01.11.2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4251203005&lt;/TD&gt;&lt;TD&gt;23,06 €&lt;/TD&gt;&lt;TD&gt;Express GmbH&lt;/TD&gt;&lt;TD&gt;01.09.2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4251203005&lt;/TD&gt;&lt;TD&gt;23,07 €&lt;/TD&gt;&lt;TD&gt;Express GmbH&lt;/TD&gt;&lt;TD&gt;01.10.2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4251203005&lt;/TD&gt;&lt;TD&gt;23,08 €&lt;/TD&gt;&lt;TD&gt;Express GmbH TEST&lt;/TD&gt;&lt;TD&gt;01.08.2023&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume the measure cannot find the entry due to the change of the name of the delivery, right? Therefore dateAdd returns NaN because there is no such entry even the date is set.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 06:45:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3451127#M131468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-28T06:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Measure with DateAdd returns NaN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3451284#M131475</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;, if there is only price and valueprevmonth, there is no way of distinction. For each product the valueprevMonth will be different. If delivery name is added to table visual, the measure will look like this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 08:05:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-with-DateAdd-returns-NaN/m-p/3451284#M131475</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-09-28T08:05:48Z</dc:date>
    </item>
  </channel>
</rss>

