<?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: dividir fila 1 entre fila 2 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3938290#M153152</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482018" data-lia-user-login="Edimar90" class="lia-mention lia-mention-user"&gt;Edimar90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the ALL or ALLSELECETED function in front of the tb_Admon_Gastos_Planta table, I'm not sure if it meets your expected results, please show the sample data in a usable form as well as the expected results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 06:55:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-22T06:55:07Z</dc:date>
    <item>
      <title>dividir fila 1 entre fila 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3936786#M153101</link>
      <description>&lt;P&gt;Requiero obtener el % de venta el cual se calcula&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gastos / Ventas&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pero los datos los tengo en categoria Planta y subcategoria Rubro como en el ejemplo de la imagen:&lt;/P&gt;&lt;P&gt;Planta = PLANTA 1 Y PASTAS&lt;/P&gt;&lt;P&gt;Rubro = [Kilos Ventidos],Ventas,Gastos&lt;/P&gt;&lt;P&gt;Values = Columna Anterior&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&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;&lt;P&gt;El problema:&lt;/P&gt;&lt;P&gt;Al momento de dividir gastos /&amp;nbsp; venta = ERROR&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Lo correcto seria lo siguiente:&amp;nbsp;&lt;BR /&gt;13,204,780 / 74,215,884 = 0.177922936281403&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gracias por la ayuda.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 17:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3936786#M153101</guid>
      <dc:creator>Edimar90</dc:creator>
      <dc:date>2024-05-21T17:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: dividir fila 1 entre fila 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3936831#M153102</link>
      <description>&lt;P&gt;hola&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482018" data-lia-user-login="Edimar90" class="lia-mention lia-mention-user"&gt;Edimar90&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;can you explain your issue in English?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;A title="Learn Power BI free:" href="https://analyticpulse.blogspot.com" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Learn Power BI free:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;A href="https://analyticpulse.blogspot.com/?m=1" target="_blank" rel="noopener"&gt;https://analyticpulse.blogspot.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;A title="Power BI : getting started " href="https://analyticpulse.blogspot.com/p/introduction.html?m=1" target="_self"&gt;Power BI : getting started &lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;A title="Dax Functions " href="https://analyticpulse.blogspot.com/p/dax-functions.html?m=1" target="_self"&gt;Dax functions &lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;A title="powerbi Visualisation " href="https://analyticpulse.blogspot.com/p/creating-visualizations.html?m=1" target="_self"&gt;powerbi Visualisation&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Powerbi Introduction" href="https://analyticpulse.blogspot.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 18:09:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3936831#M153102</guid>
      <dc:creator>AnalyticPulse</dc:creator>
      <dc:date>2024-05-21T18:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: dividir fila 1 entre fila 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3936899#M153103</link>
      <description>&lt;P&gt;I need to split the rows&lt;/P&gt;&lt;P&gt;Row Expenses / Row Sales&lt;/P&gt;&lt;P&gt;But I have the data in the Plant category and the Category subcategory, as in the example in the image:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&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;&lt;P&gt;Plant = PLANT 1 AND PASTA&lt;/P&gt;&lt;P&gt;Item = [Kilos Sold],Sales,Expenses&lt;/P&gt;&lt;P&gt;Values = Previous Column&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The problem:&lt;/P&gt;&lt;P&gt;At the time of splitting expenses/sales = ERROR&lt;/P&gt;&lt;P&gt;My table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;act = Value&lt;BR /&gt;Rubro = subcategory&lt;BR /&gt;Planta = category&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My operation is:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Gastos =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tb_Admon_Gastos_Plan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IV&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tb_Admon_Gastos_Planta&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;tb_Admon_Gastos_Planta&lt;/SPAN&gt;&lt;SPAN&gt;[Gastos]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tb_Admon_Gastos_Planta&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Ventas]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The correct thing to do would be the following:&lt;BR /&gt;13,204,780 / 74,215,884 = 0.177922936281403&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 18:27:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3936899#M153103</guid>
      <dc:creator>Edimar90</dc:creator>
      <dc:date>2024-05-21T18:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: dividir fila 1 entre fila 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3938290#M153152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482018" data-lia-user-login="Edimar90" class="lia-mention lia-mention-user"&gt;Edimar90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the ALL or ALLSELECETED function in front of the tb_Admon_Gastos_Planta table, I'm not sure if it meets your expected results, please show the sample data in a usable form as well as the expected results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope it helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Scott Chang&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 06:55:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3938290#M153152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-22T06:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: dividir fila 1 entre fila 2</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3940229#M153200</link>
      <description>&lt;P&gt;ya tengo los dos valores separados pero sigue mandando error en la divicion:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GastosAntALL =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[GastosAnterior]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&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p;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Gracias!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 May 2024 15:28:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-fila-1-entre-fila-2/m-p/3940229#M153200</guid>
      <dc:creator>Edimar90</dc:creator>
      <dc:date>2024-05-22T15:28:22Z</dc:date>
    </item>
  </channel>
</rss>

