<?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 How to Get Sum Discount based on MIN MAX from multiple condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Get-Sum-Discount-based-on-MIN-MAX-from-multiple-condition/m-p/2878831#M93102</link>
    <description>&lt;P&gt;Hi, Everyone&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have struggle for some days. I want to compare may value that fullfil from min and max to get the discount. Here for discount table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For the next one, if the value fullfil 2 min and max so the discount will be sum. For example the value is 65 it will get 2 discounts (1+2) so the discount will be 3.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually I want to use measure so I can use filter in my report. For now I still use this measure&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;measure = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1&lt;/SPAN&gt;&lt;SPAN&gt;[measure1]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table2[MIN]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;&amp;amp; Table1&lt;/SPAN&gt;&lt;SPAN&gt;[measure1]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table2[MAX&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&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;[Discount]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;And the value that I want compare is in another table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 04:27:28 GMT</pubDate>
    <dc:creator>Zarig</dc:creator>
    <dc:date>2022-11-02T04:27:28Z</dc:date>
    <item>
      <title>How to Get Sum Discount based on MIN MAX from multiple condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Get-Sum-Discount-based-on-MIN-MAX-from-multiple-condition/m-p/2878831#M93102</link>
      <description>&lt;P&gt;Hi, Everyone&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have struggle for some days. I want to compare may value that fullfil from min and max to get the discount. Here for discount table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For the next one, if the value fullfil 2 min and max so the discount will be sum. For example the value is 65 it will get 2 discounts (1+2) so the discount will be 3.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Actually I want to use measure so I can use filter in my report. For now I still use this measure&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;measure = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1&lt;/SPAN&gt;&lt;SPAN&gt;[measure1]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table2[MIN]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;&amp;amp; Table1&lt;/SPAN&gt;&lt;SPAN&gt;[measure1]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table2[MAX&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&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;[Discount]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;And the value that I want compare is in another table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 04:27:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Get-Sum-Discount-based-on-MIN-MAX-from-multiple-condition/m-p/2878831#M93102</guid>
      <dc:creator>Zarig</dc:creator>
      <dc:date>2022-11-02T04:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get Sum Discount based on MIN MAX from multiple condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Get-Sum-Discount-based-on-MIN-MAX-from-multiple-condition/m-p/2882382#M93334</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="465459" data-lia-user-login="Zarig" class="lia-mention lia-mention-user"&gt;Zarig&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have trouble to follow. Please share the expected result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 09:11:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Get-Sum-Discount-based-on-MIN-MAX-from-multiple-condition/m-p/2882382#M93334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-03T09:11:15Z</dc:date>
    </item>
  </channel>
</rss>

