<?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: RELATED, multiplication from two different tables when values almost the same ... in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935912#M9783</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First thing RELATED dax function works as a look-up function from one table to another. In you case, the common column in TABLE1 and TABLE 2 is - PRODUCT&lt;/P&gt;&lt;P&gt;- Unique values for PRODUCT column in Table1 --&amp;gt; Product A, Product B, Product C&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Unique values for PRODUCT column in Table2 --&amp;gt; Product A, Product B, Product CD, Product E&lt;/P&gt;&lt;P&gt;- Matching values for PRODUCT column in both the tables --&amp;gt; Product A and Product B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dax caluclation that you have used is as follows:&lt;/P&gt;&lt;P&gt;&lt;EM&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; New Price =&amp;nbsp;Table1[Revenue Breakout] * RELATED(Table2[Column Price])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;This will return matching value for Table1[Product] from Table 2. Not the ones for products which don't exist in Table1.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I am assuming you have joined Table1 and Table2 on PRODUCT column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get products that exist in Table2 as well, you may need to create rows in Table1 for the products that are in Table2 but not in Table1. In that way you get all the products in Table1. Further, when you use the above DAX for "New Price", it will return the calculation for all the products.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 16:44:52 GMT</pubDate>
    <dc:creator>Pragati11</dc:creator>
    <dc:date>2020-02-17T16:44:52Z</dc:date>
    <item>
      <title>RELATED, multiplication from two different tables when values almost the same ...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935698#M9773</link>
      <description>&lt;P&gt;Hello World,&lt;BR /&gt;Please give me some help/advice.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Table1&lt;/STRONG&gt;&lt;BR /&gt;Product column&amp;nbsp; &amp;nbsp;Revenue Breakout&lt;/P&gt;&lt;P&gt;Product A&amp;nbsp; &amp;nbsp;0,3&lt;/P&gt;&lt;P&gt;Product B&amp;nbsp; &amp;nbsp;0,2&lt;BR /&gt;Product C&amp;nbsp; &amp;nbsp;0,1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2&lt;/STRONG&gt;&lt;BR /&gt;Product&amp;nbsp; &amp;nbsp;Column Price&lt;BR /&gt;Product A 130&lt;/P&gt;&lt;P&gt;Product B 120&lt;BR /&gt;Product CD 60&lt;BR /&gt;Product E 80&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I add a column to Table1, named New Price&lt;BR /&gt;like&lt;BR /&gt;New Price =&amp;nbsp;&lt;SPAN&gt;Table1[Revenue Breakout] * RELATED(Table2[Column Price])&lt;BR /&gt;&lt;BR /&gt;So my table Table1 now looks like&lt;BR /&gt;Product Column, Revenue Breakout, New Price&lt;BR /&gt;Product A, 0,3, 39&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Product B, 0,2, 24&lt;BR /&gt;&lt;BR /&gt;B U T&amp;nbsp;&lt;BR /&gt;I would like to have a third row in Table1 like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Product CD, 0,1, 6&lt;BR /&gt;&lt;BR /&gt;How can I do this ?!?!?!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:21:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935698#M9773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-17T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: RELATED, multiplication from two different tables when values almost the same ...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935743#M9776</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where does the value in bold comes from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Product CD, &lt;STRONG&gt;0,1,&lt;/STRONG&gt; 6&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935743#M9776</guid>
      <dc:creator>VasTg</dc:creator>
      <dc:date>2020-02-17T14:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: RELATED, multiplication from two different tables when values almost the same ...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935756#M9777</link>
      <description>&lt;P&gt;From Table1 and Product C which is 0,1&lt;/P&gt;&lt;P&gt;6 are 0,1x60&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935756#M9777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-17T14:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: RELATED, multiplication from two different tables when values almost the same ...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935912#M9783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First thing RELATED dax function works as a look-up function from one table to another. In you case, the common column in TABLE1 and TABLE 2 is - PRODUCT&lt;/P&gt;&lt;P&gt;- Unique values for PRODUCT column in Table1 --&amp;gt; Product A, Product B, Product C&lt;/P&gt;&lt;P&gt;-&amp;nbsp;Unique values for PRODUCT column in Table2 --&amp;gt; Product A, Product B, Product CD, Product E&lt;/P&gt;&lt;P&gt;- Matching values for PRODUCT column in both the tables --&amp;gt; Product A and Product B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dax caluclation that you have used is as follows:&lt;/P&gt;&lt;P&gt;&lt;EM&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; New Price =&amp;nbsp;Table1[Revenue Breakout] * RELATED(Table2[Column Price])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;This will return matching value for Table1[Product] from Table 2. Not the ones for products which don't exist in Table1.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I am assuming you have joined Table1 and Table2 on PRODUCT column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get products that exist in Table2 as well, you may need to create rows in Table1 for the products that are in Table2 but not in Table1. In that way you get all the products in Table1. Further, when you use the above DAX for "New Price", it will return the calculation for all the products.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 16:44:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RELATED-multiplication-from-two-different-tables-when-values/m-p/935912#M9783</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-02-17T16:44:52Z</dc:date>
    </item>
  </channel>
</rss>

