<?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: NaN error message in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967468#M11492</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="214215" data-lia-user-login="PlastiquesMoore" class="lia-mention lia-mention-user"&gt;PlastiquesMoore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use DIVIDE() function, like&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PPM Externe Médical % Variance = DIVIDE(
CALCULATE(sum('Quality (Actuel)'[External PPM - Medical Actuel]) - (sum('Quality (Planifié)'[External PPM - Medical Planifié]))))
, 
CALCULATE(sum('Quality (Planifié)'[External PPM - Medical Planifié]))
,
0
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/divide-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/divide-function-dax&lt;/A&gt;&amp;nbsp;here is some details. you can replace 0 at the end to any value you wish to see instead of NaN&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 19:26:46 GMT</pubDate>
    <dc:creator>az38</dc:creator>
    <dc:date>2020-03-10T19:26:46Z</dc:date>
    <item>
      <title>NaN error message</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967087#M11477</link>
      <description>&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty much new to Power BI and loving it! I'm still getting used to the Power BI terminology so please bare with me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my Dax formula and I'm getting some "NaN" results. I would like to change this to "0". Could someone please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PPM Externe Médical % Variance = (CALCULATE(sum('Quality (Actuel)'[External PPM - Medical Actuel]) - (sum('Quality (Planifié)'[External PPM - Medical Planifié])))) / (CALCULATE(sum('Quality (Planifié)'[External PPM - Medical Planifié])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 15:13:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967087#M11477</guid>
      <dc:creator>PlastiquesMoore</dc:creator>
      <dc:date>2020-03-10T15:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: NaN error message</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967468#M11492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="214215" data-lia-user-login="PlastiquesMoore" class="lia-mention lia-mention-user"&gt;PlastiquesMoore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;use DIVIDE() function, like&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PPM Externe Médical % Variance = DIVIDE(
CALCULATE(sum('Quality (Actuel)'[External PPM - Medical Actuel]) - (sum('Quality (Planifié)'[External PPM - Medical Planifié]))))
, 
CALCULATE(sum('Quality (Planifié)'[External PPM - Medical Planifié]))
,
0
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/divide-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/divide-function-dax&lt;/A&gt;&amp;nbsp;here is some details. you can replace 0 at the end to any value you wish to see instead of NaN&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 19:26:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967468#M11492</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-10T19:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: NaN error message</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967740#M11509</link>
      <description>&lt;P&gt;Your formula gave me a DAX error. Figured it out to this. Thanks very much for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PPM Externe Médical % Variance = DIVIDE((CALCULATE(SUM('Quality (Actuel)'[External PPM - Medical Actuel])-(SUM('Quality (Planifié)'[External PPM - Medical Planifié]))));(SUM('Quality (Planifié)'[External PPM - Medical Planifié]));0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Mar 2020 01:36:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967740#M11509</guid>
      <dc:creator>PlastiquesMoore</dc:creator>
      <dc:date>2020-03-11T01:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: NaN error message</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967797#M11511</link>
      <description>Write the same dax which you have written in original post by using divide function and add zero as third parameter.&lt;BR /&gt;Divide(numerator, denominator,0)&lt;BR /&gt;Make sure you have closed parenthesis correctly.&lt;BR /&gt;You issue will get resolved.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Pravin.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2020 02:17:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/967797#M11511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-11T02:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: NaN error message</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/968124#M11518</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="214215" data-lia-user-login="PlastiquesMoore" class="lia-mention lia-mention-user"&gt;PlastiquesMoore&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now its ok? or try this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PPM Externe Médical % Variance = 
DIVIDE(
(
CALCULATE(SUM('Quality (Actuel)'[External PPM - Medical Actuel]))
-
SUM('Quality (Planifié)'[External PPM - Medical Planifié])
);
SUM('Quality (Planifié)'[External PPM - Medical Planifié]);
0
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 06:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/NaN-error-message/m-p/968124#M11518</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-03-11T06:10:55Z</dc:date>
    </item>
  </channel>
</rss>

