<?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: Help division error in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369165#M24902</link>
    <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="76400" data-lia-user-login="pmadam" class="lia-mention lia-mention-user"&gt;pmadam&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Why are you outputting numbers as text? This is not how you do stuff correctly. If you want to format a number in a visual, please use the formatting options in the ribbon, not the FORMAT function.</description>
    <pubDate>Mon, 14 Sep 2020 13:46:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-14T13:46:03Z</dc:date>
    <item>
      <title>Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1367888#M24857</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to divide two text columns for a particluar dimension. So i get error when the numerator or denominator has blank value. I went forward and added if clause as below but i still get below error .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly sugest&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;XY = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISBLANK([DSAM Amount]) &amp;amp;&amp;amp; Not ISBLANK(VALUE([Customer Target])) &amp;lt;&amp;gt; "", 0 , &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;([Customer Target] / &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[DSAM Amount])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 07:13:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1367888#M24857</guid>
      <dc:creator>pmadam</dc:creator>
      <dc:date>2020-09-14T07:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1367934#M24860</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="76400" data-lia-user-login="pmadam" class="lia-mention lia-mention-user"&gt;pmadam&lt;/a&gt;&amp;nbsp;Use the DIVIDE function like this (get rid of the IF clause)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;XY =DIVIDE([&lt;/SPAN&gt;&lt;SPAN&gt;Customer Target],[&lt;/SPAN&gt;&lt;SPAN&gt;DSAM Amount],0)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Third parameter is the one to return in case of divide by zero.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 14 Sep 2020 07:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1367934#M24860</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-14T07:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1368140#M24868</link>
      <description>The error says it all: you cannot compare bool values with text. Makes no sense... Here's how to use IF: IF( &amp;lt;logical_condition&amp;gt;, &amp;lt;case_for_True&amp;gt;, &amp;lt;case_for_False&amp;gt; ). You cannot do this True &amp;lt;&amp;gt; "". This comparison is not defined.</description>
      <pubDate>Mon, 14 Sep 2020 08:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1368140#M24868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-14T08:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369073#M24900</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get error. These measures are in text because when i added comma seperator, the measures were converted to type int to text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 13:20:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369073#M24900</guid>
      <dc:creator>pmadam</dc:creator>
      <dc:date>2020-09-14T13:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369165#M24902</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="76400" data-lia-user-login="pmadam" class="lia-mention lia-mention-user"&gt;pmadam&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Why are you outputting numbers as text? This is not how you do stuff correctly. If you want to format a number in a visual, please use the formatting options in the ribbon, not the FORMAT function.</description>
      <pubDate>Mon, 14 Sep 2020 13:46:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369165#M24902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-14T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369191#M24903</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="76400" data-lia-user-login="pmadam" class="lia-mention lia-mention-user"&gt;pmadam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are bot of your columns numeric which you are trying to divide.&lt;/P&gt;
&lt;P&gt;DIVIDE is function that works on non-text values. If you think logically, how can you divide a text value by a numeric value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try modifying data type of your text column used in DIVIDE function to Numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 13:52:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369191#M24903</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-09-14T13:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369654#M24920</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="76400" data-lia-user-login="pmadam" class="lia-mention lia-mention-user"&gt;pmadam&lt;/a&gt; you have the wrong syntax for DIVIDE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt; 's code: &amp;nbsp;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;XY =DIVIDE( [&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Customer Target]&lt;FONT color="#ff6600"&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/FONT&gt; [&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;DSAM Amount], 0 )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code:&amp;nbsp;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;XY =DIVIDE( [&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Customer Target] &lt;FONT color="#ff6600"&gt;&lt;STRONG&gt;/&lt;/STRONG&gt; &lt;/FONT&gt;[&lt;/SPAN&gt;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;DSAM Amount] ,0 ).&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Even if you didn't throw an error with one of your "numbers" being empty, you are dividing by 0.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="box-sizing: border-box; color: #000000; font-family: &amp;amp;quot; segoeui&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;David&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1369654#M24920</guid>
      <dc:creator>dedelman_clng</dc:creator>
      <dc:date>2020-09-14T16:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1370328#M24961</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="76400" data-lia-user-login="pmadam" class="lia-mention lia-mention-user"&gt;pmadam&lt;/a&gt;&amp;nbsp;Maybe:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;XY =
IF(
  ISBLANK([DSAM Amount]) &amp;amp;&amp;amp; Not(ISBLANK(VALUE([Customer Target]))), 
  0 ,
  [Customer Target] / [DSAM Amount]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Sep 2020 00:36:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1370328#M24961</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-15T00:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help division error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1371099#M24983</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="76400" data-lia-user-login="pmadam" class="lia-mention lia-mention-user"&gt;pmadam&lt;/a&gt; , Your measure should be divide( [Customer Target],[DSAM Amount],0)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 08:05:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-division-error/m-p/1371099#M24983</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-15T08:05:38Z</dc:date>
    </item>
  </channel>
</rss>

