<?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 Find value in another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-value-in-another-table/m-p/3999895#M155751</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure which have calculated the total discount on a customer(cust_disc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given this discount I would like to find from the table below(discounttable) what the turnover should have been at least with this discount. For example with a discount of 48,1% the turnover should be at least 300.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you write that measure to find the value 300.000?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2024 09:49:38 GMT</pubDate>
    <dc:creator>Dennis_Pedersen</dc:creator>
    <dc:date>2024-06-19T09:49:38Z</dc:date>
    <item>
      <title>Find value in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-value-in-another-table/m-p/3999895#M155751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure which have calculated the total discount on a customer(cust_disc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given this discount I would like to find from the table below(discounttable) what the turnover should have been at least with this discount. For example with a discount of 48,1% the turnover should be at least 300.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you write that measure to find the value 300.000?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 09:49:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-value-in-another-table/m-p/3999895#M155751</guid>
      <dc:creator>Dennis_Pedersen</dc:creator>
      <dc:date>2024-06-19T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find value in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-value-in-another-table/m-p/3999970#M155758</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150977" data-lia-user-login="Dennis_Pedersen" class="lia-mention lia-mention-user"&gt;Dennis_Pedersen&lt;/a&gt;&amp;nbsp;, Try using below DAX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Minimum Turnover = &lt;BR /&gt;VAR Discount = [cust_disc] // Replace [cust_disc] with your actual measure for calculating the total discount on a customer&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(discounttable[Turnover]),&lt;BR /&gt;discounttable[Discount] &amp;gt;= Discount,&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(discounttable),&lt;BR /&gt;discounttable[Discount] &amp;gt;= Discount&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 10:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-value-in-another-table/m-p/3999970#M155758</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-06-19T10:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find value in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-value-in-another-table/m-p/4006993#M156868</link>
      <description>&lt;P&gt;Thanks a lot. That helped me in the right direction.&lt;/P&gt;&lt;P&gt;However I had to ammend it a little, with making a discount from and discount to, to make it work correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR Discount = [Total discount_ %]&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Amount from],&lt;BR /&gt;Discount &amp;gt;=DIM_Segmentering[Discount from],&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(DIM_Segmentering),&lt;BR /&gt;Discount&amp;lt;DIM_Segmentering[Discount to]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 13:18:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-value-in-another-table/m-p/4006993#M156868</guid>
      <dc:creator>Dennis_Pedersen</dc:creator>
      <dc:date>2024-06-24T13:18:09Z</dc:date>
    </item>
  </channel>
</rss>

