<?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 Divide value according to category in other table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2503533#M69274</link>
    <description>&lt;P&gt;I have two tables, the first shows the products and their ratio. The second shows the product and their values. I wish to create a new column to calculate the converted value&amp;nbsp;(value/ratio) according to the respective product category. I tried to make a one-to-many relationship from first table to second table by linking 'product'. However, it only allows many-to-many relationship and both direction. How to make it one-to-many relationship and single direction? Any help given is appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Second table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 05:46:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-10T05:46:07Z</dc:date>
    <item>
      <title>Divide value according to category in other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2503533#M69274</link>
      <description>&lt;P&gt;I have two tables, the first shows the products and their ratio. The second shows the product and their values. I wish to create a new column to calculate the converted value&amp;nbsp;(value/ratio) according to the respective product category. I tried to make a one-to-many relationship from first table to second table by linking 'product'. However, it only allows many-to-many relationship and both direction. How to make it one-to-many relationship and single direction? Any help given is appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Second table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 05:46:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2503533#M69274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-10T05:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Divide value according to category in other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2503575#M69277</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;.&lt;BR /&gt;&lt;BR /&gt;You can create a summary table using "SUMMARIZE'.&lt;BR /&gt;You can write your DAX as ;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Test = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table2&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Table2[Product]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Table2[Value]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Table1[Equivalent Ratio]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Then create a calculated column for Converted Value using ;&lt;BR /&gt;&lt;/SPAN&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Converted_Value = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Test[Value]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Test[Equivalent Ratio]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;See below output;&lt;BR /&gt;&lt;img /&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sanket&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If this post helps, then mark it as &lt;STRONG&gt;"Accept as Solution"&lt;/STRONG&gt;&amp;nbsp;and give it a thumbs up.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2022 06:17:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2503575#M69277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-10T06:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Divide value according to category in other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2504199#M69297</link>
      <description>&lt;P&gt;sry but I am not sure why the table 1 does not show up in the summarize function&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 09:03:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2504199#M69297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-10T09:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Divide value according to category in other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2504867#M69330</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I beleive answer is same (actually provide Calc Col and Measure). The main thing was to answer the relationship question. Please see attached for that part. I hope this helps..&lt;/P&gt;&lt;P&gt;&lt;A title="Conv Value Relationship" href="https://drive.google.com/file/d/1n_q1I9SuwHTEZXTSTQDFjQnX39uG0BXl/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1n_q1I9SuwHTEZXTSTQDFjQnX39uG0BXl/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure_Converted Value = &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATA&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Data[Value]&lt;/SPAN&gt;&lt;SPAN&gt; / &lt;/SPAN&gt;&lt;SPAN&gt;Data[Ration]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2022 12:53:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2504867#M69330</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-05-10T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Divide value according to category in other table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2506079#M69401</link>
      <description>&lt;P&gt;Did you manually type in the Prod_ID column in the Data table?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 01:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Divide-value-according-to-category-in-other-table/m-p/2506079#M69401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-11T01:14:58Z</dc:date>
    </item>
  </channel>
</rss>

