<?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 dividir resultados de diferentes tablas y relacionar por columnas in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3776391#M147602</link>
    <description>&lt;P&gt;Tengo dos tablas relacionadas por Fecha y quiero dividir de tabla1/tabla2 cuando tabla1.Planta = tabla2.Planta, pero no he encontrado la forma&amp;nbsp; correcta lo que mas me hizo sentido fue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&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;VentasPPTOGeneral&lt;/SPAN&gt;&lt;SPAN&gt;[Act$]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;tb_Admon_Gastos&lt;/SPAN&gt;&lt;SPAN&gt;[GastoReal]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VentasPPTOGeneral&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tb_Admon_Gastos&lt;/SPAN&gt;&lt;SPAN&gt;[PlantaConbinada]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;distinct&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VentasPPTOGeneralTotis&lt;/SPAN&gt;&lt;SPAN&gt;[PlantaVts]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Gracias.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 20 Mar 2024 16:23:37 GMT</pubDate>
    <dc:creator>Edimar90</dc:creator>
    <dc:date>2024-03-20T16:23:37Z</dc:date>
    <item>
      <title>dividir resultados de diferentes tablas y relacionar por columnas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3776391#M147602</link>
      <description>&lt;P&gt;Tengo dos tablas relacionadas por Fecha y quiero dividir de tabla1/tabla2 cuando tabla1.Planta = tabla2.Planta, pero no he encontrado la forma&amp;nbsp; correcta lo que mas me hizo sentido fue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&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;VentasPPTOGeneral&lt;/SPAN&gt;&lt;SPAN&gt;[Act$]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;tb_Admon_Gastos&lt;/SPAN&gt;&lt;SPAN&gt;[GastoReal]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VentasPPTOGeneral&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tb_Admon_Gastos&lt;/SPAN&gt;&lt;SPAN&gt;[PlantaConbinada]&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;distinct&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VentasPPTOGeneralTotis&lt;/SPAN&gt;&lt;SPAN&gt;[PlantaVts]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Gracias.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Mar 2024 16:23:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3776391#M147602</guid>
      <dc:creator>Edimar90</dc:creator>
      <dc:date>2024-03-20T16:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: dividir resultados de diferentes tablas y relacionar por columnas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3777666#M147653</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;Would you be able to provide more information, such as some sample data (without privacy information) or pbix files. So that we can better understand and solve the problem you are experiencing.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ada Wang&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&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 08:23:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3777666#M147653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-20T08:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: dividir resultados de diferentes tablas y relacionar por columnas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3779964#M147695</link>
      <description>&lt;P&gt;Muchas gracias&amp;nbsp;Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;La idea es de las siguientes tablas independientes:&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;Dividir como ejemplo:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Planta Kilos Planta 1 (VentasPPTOGeneral.[KG Ant])) / (PlantaCombinada Planta 1 (tb_Admon_Gastos.Anterior) )&lt;/P&gt;&lt;P&gt;en valores quedaria: (2,481,400)/(21,682,122) =&lt;FONT color="#339966"&gt; 0.1144&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estas son tablas diferentes y estan relacionadas solo con fecha.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;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>Wed, 20 Mar 2024 15:41:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3779964#M147695</guid>
      <dc:creator>Edimar90</dc:creator>
      <dc:date>2024-03-20T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: dividir resultados de diferentes tablas y relacionar por columnas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3781495#M147739</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;Depending on the information you provided, you can follow these steps below:&lt;/P&gt;
&lt;P&gt;1. Add a new table and create a relationship with your two tables.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Planta = DISTINCT('tb_Admon_Gastos'[PlantaCombinada])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;2. Add a new measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Divide =
DIVIDE (
    SELECTEDVALUE ( VentasPPTOGeneral[KG Ant] ),
    SELECTEDVALUE ( 'tb_Admon_Gastos'[Anterior] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired out put and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ada Wang&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&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 06:09:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dividir-resultados-de-diferentes-tablas-y-relacionar-por/m-p/3781495#M147739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-21T06:09:54Z</dc:date>
    </item>
  </channel>
</rss>

