<?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: Resultado infinito in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Resultado-infinito/m-p/3257877#M120371</link>
    <description>&lt;P&gt;Hi Stephen!&lt;/P&gt;&lt;P&gt;Thanks, but it is not the solution that I need.&lt;/P&gt;&lt;P&gt;The result that I need would be based on the following division:&lt;/P&gt;&lt;P&gt;190690,23 / 2415628,50&amp;nbsp; &amp;nbsp; &amp;nbsp;7,89% (ok)&lt;/P&gt;&lt;P&gt;2415628,50 / 2415628,50&amp;nbsp; &amp;nbsp;100,00% (ok)&lt;/P&gt;&lt;P&gt;-596413,05 / 2415628,50&amp;nbsp; &amp;nbsp;24,69% (and not "-infinito")&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2023 11:29:07 GMT</pubDate>
    <dc:creator>xetler</dc:creator>
    <dc:date>2023-05-29T11:29:07Z</dc:date>
    <item>
      <title>Resultado infinito</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Resultado-infinito/m-p/3255670#M120228</link>
      <description>&lt;P&gt;Buenas tardes,&lt;/P&gt;&lt;P&gt;Tengo la siguiente tabla. En ella necesito que me calcule el % en cada una de las filas sobre el total de las prestaciones de servicios.&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;&lt;P&gt;He realizado dos medidas:&amp;nbsp;&lt;/P&gt;&lt;P&gt;La primera es la siguiente, para aislar por decirlo de alguna manera, las ventas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Donde el 705 es la cuenta contable donde se engloba todas las ventas.&lt;/P&gt;&lt;P&gt;Y la segunda es la siguiente para llevarla al modelo y calcular el % en cada una de las filas:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Es curioso que me salga bien al calcular el resultado de explotación, en la prestación de servicios (que es 100% al ser el mismo importe), y en resultado del ejercicio.&lt;/P&gt;&lt;P&gt;Pero en el resto de filas me pone infinito. Y no hay ceros, ya que hay importes en el saldo de cuentas de cada una de las filas.&lt;/P&gt;&lt;P&gt;Y si incluyo la orden DIVIDE me aparece en vez de infinito 0.&lt;/P&gt;&lt;P&gt;Alguna idea???&lt;/P&gt;&lt;P&gt;Muchas gracias!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 15:28:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Resultado-infinito/m-p/3255670#M120228</guid>
      <dc:creator>xetler</dc:creator>
      <dc:date>2023-05-26T15:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Resultado infinito</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Resultado-infinito/m-p/3257144#M120318</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="567005" data-lia-user-login="xetler" class="lia-mention lia-mention-user"&gt;xetler&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In DAX, you can use the IFERROR function to replace the infinite value with another value. The IFERROR function takes two arguments: the first argument is the expression that you want to evaluate, and the second argument is the value that you want to return if the expression evaluates to an error.&lt;/P&gt;
&lt;P&gt;Here's an example of how you can use the IFERROR function to replace the infinite value with 0:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=IFERROR(DIVIDE(numerator, denominator), 0)
&lt;/LI-CODE&gt;
&lt;P&gt;In this example, the DIVIDE function is used to divide the numerator by the denominator. If the result of the division is infinite, the IFERROR function will return 0 instead.&lt;/P&gt;
&lt;P&gt;You can replace the 0 with any other value that you want to return if the expression evaluates to an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 02:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Resultado-infinito/m-p/3257144#M120318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-29T02:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Resultado infinito</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Resultado-infinito/m-p/3257877#M120371</link>
      <description>&lt;P&gt;Hi Stephen!&lt;/P&gt;&lt;P&gt;Thanks, but it is not the solution that I need.&lt;/P&gt;&lt;P&gt;The result that I need would be based on the following division:&lt;/P&gt;&lt;P&gt;190690,23 / 2415628,50&amp;nbsp; &amp;nbsp; &amp;nbsp;7,89% (ok)&lt;/P&gt;&lt;P&gt;2415628,50 / 2415628,50&amp;nbsp; &amp;nbsp;100,00% (ok)&lt;/P&gt;&lt;P&gt;-596413,05 / 2415628,50&amp;nbsp; &amp;nbsp;24,69% (and not "-infinito")&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 11:29:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Resultado-infinito/m-p/3257877#M120371</guid>
      <dc:creator>xetler</dc:creator>
      <dc:date>2023-05-29T11:29:07Z</dc:date>
    </item>
  </channel>
</rss>

