<?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 Passing values in tables with relation many to many in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Passing-values-in-tables-with-relation-many-to-many/m-p/3247816#M119723</link>
    <description>&lt;P&gt;Hey,&lt;BR /&gt;im facing the problem with passing values between two tables in many to many relationship (product to product).&lt;BR /&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What im trying to do is to create a calculated column in Table 1 that will show Sum of sales for specific product but only once.&amp;nbsp;&lt;BR /&gt;Expected result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;already played with sumx function in different ways, but it always replicate my results for each of three rows in that example.&lt;BR /&gt;Im woundering if that expected output is even possible to create.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any guidence&amp;nbsp;&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>Mon, 22 May 2023 14:02:37 GMT</pubDate>
    <dc:creator>STRUSINIO</dc:creator>
    <dc:date>2023-05-22T14:02:37Z</dc:date>
    <item>
      <title>Passing values in tables with relation many to many</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Passing-values-in-tables-with-relation-many-to-many/m-p/3247816#M119723</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;im facing the problem with passing values between two tables in many to many relationship (product to product).&lt;BR /&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What im trying to do is to create a calculated column in Table 1 that will show Sum of sales for specific product but only once.&amp;nbsp;&lt;BR /&gt;Expected result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;already played with sumx function in different ways, but it always replicate my results for each of three rows in that example.&lt;BR /&gt;Im woundering if that expected output is even possible to create.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any guidence&amp;nbsp;&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>Mon, 22 May 2023 14:02:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Passing-values-in-tables-with-relation-many-to-many/m-p/3247816#M119723</guid>
      <dc:creator>STRUSINIO</dc:creator>
      <dc:date>2023-05-22T14:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing values in tables with relation many to many</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Passing-values-in-tables-with-relation-many-to-many/m-p/3250053#M119879</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558979" data-lia-user-login="STRUSINIO" class="lia-mention lia-mention-user"&gt;STRUSINIO&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Your expected result is blank, so i just could give solution according to your description.&lt;/P&gt;
&lt;P&gt;Please try to create a calculate column with below dax formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR _a = [Product]
VAR tmp =
    FILTER ( ALL ( Table2 ), [Product] = _a )
RETURN
    SUMX ( tmp, [Sales] )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer the attached .pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 02:43:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Passing-values-in-tables-with-relation-many-to-many/m-p/3250053#M119879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T02:43:45Z</dc:date>
    </item>
  </channel>
</rss>

