<?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: DIVIDE  error ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3240897#M119243</link>
    <description>&lt;P&gt;I disagree with you that it works incorrectly, but I agree with you that "arguing" would be a waste of time so have a great day! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 18:28:32 GMT</pubDate>
    <dc:creator>Wilson_</dc:creator>
    <dc:date>2023-05-17T18:28:32Z</dc:date>
    <item>
      <title>DIVIDE  error ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3230347#M118504</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;/P&gt;&lt;P&gt;who can explain me&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DIVIDE(blank(),0,5) - return BLANK&lt;BR /&gt;DIVIDE(0,blank(),5) - return 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (ISERROR( blank()/0),1,2) - Return 2 NOT ERROR&lt;BR /&gt;if (ISERROR( 0/blank()),1,2) - Return 1 ERROR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why&amp;nbsp;blank()/0 is not error ? and why is divide return BLANK ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 08:34:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3230347#M118504</guid>
      <dc:creator>dim123dim123</dc:creator>
      <dc:date>2023-05-11T08:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE  error ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3230804#M118534</link>
      <description>&lt;P&gt;Straight from &lt;A href="https://learn.microsoft.com/en-us/dax/divide-function-dax" target="_self"&gt;Microsoft's documentation&lt;/A&gt;: "&lt;SPAN&gt;Performs division and returns alternate result or BLANK() on division by 0."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;----------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 12:34:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3230804#M118534</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-05-11T12:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE  error ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3230823#M118536</link>
      <description>&lt;P&gt;&lt;SPAN&gt;if (ISERROR( blank()/0),1,2) - Return 2 NOT ERROR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (ISERROR( 0/blank()),1,2) - Return 1 ERROR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How it possible to device Blank()/0 and not got error ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;Some kind new mathematics logic?&lt;/P&gt;&lt;P&gt;And&amp;nbsp;&lt;SPAN&gt;DIVIDE(blank(),0,5)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i think all cases&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) x/0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) blank/0&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) blank /X&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4) X/blank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5)0/blank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6)blank/blank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Must return error and&amp;nbsp;alternateresult ? or what ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 12:43:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3230823#M118536</guid>
      <dc:creator>dim123dim123</dc:creator>
      <dc:date>2023-05-11T12:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE  error ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3232745#M118682</link>
      <description>&lt;P&gt;BLANK() and 0 are not quite the same thing. They are functionally the same in a lot of cases, but not always. However, it sounds like you want the DIVIDE function to treat BLANK() like a 0. In that case, wrap whatever is returning you a BLANK() in a COALESCE function:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;COALESCE ( [measure returning blank], 0 )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;----------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 12:45:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3232745#M118682</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-05-12T12:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE  error ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3239683#M119158</link>
      <description>&lt;P&gt;but dividing by 0 should give an error always ? But no,&lt;/P&gt;&lt;P&gt;divide(blank()/0,1)&amp;nbsp; and&amp;nbsp; return Blank&amp;nbsp;&lt;/P&gt;&lt;P&gt;divide(blank(),blank(),1) Return blank&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;divide(1,blank(),1) return 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not mathematically and logicaly right&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 07:54:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3239683#M119158</guid>
      <dc:creator>dim123dim123</dc:creator>
      <dc:date>2023-05-17T07:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE  error ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3240111#M119183</link>
      <description>&lt;P&gt;You can either work within the constraints of how Power BI actually works or just insist that it doesn't work the way your intuition says it should work. I don't know what to tell you. How division works with blanks overrides how division works with zeroes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You do not have the ability to actually change how Power BI works to fit your intuitions better. (After all, you cannot actually have blanks in mathematics in the first place, right?)&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 12:05:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3240111#M119183</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-05-17T12:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE  error ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3240164#M119192</link>
      <description>&lt;P&gt;There's no point in arguing.&lt;BR /&gt;If it is necessary to get a value other than BLANK as a result of division -&lt;BR /&gt;function is not suitable.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If a formula or procedure works incorrectly, it is usually fixed by the developers.&lt;/P&gt;&lt;P&gt;The recommendations to always use DIVIDE instead of IF is not 100% correct&lt;/P&gt;&lt;P&gt;So the performance is lost &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; unfortunately&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, if divide(blank()/0,1) and divide(0/blank(),1) had given the same result, I would even agree with you, but unfortunately the results are different . Right ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 12:30:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3240164#M119192</guid>
      <dc:creator>dim123dim123</dc:creator>
      <dc:date>2023-05-17T12:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: DIVIDE  error ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3240897#M119243</link>
      <description>&lt;P&gt;I disagree with you that it works incorrectly, but I agree with you that "arguing" would be a waste of time so have a great day! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 18:28:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DIVIDE-error/m-p/3240897#M119243</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-05-17T18:28:32Z</dc:date>
    </item>
  </channel>
</rss>

