<?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 Calculate min based on the selected values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2393518#M62346</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;I am trying to get the minimum amount based on selecting few subvendors&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;which I could able to achive it, now I need to create an other table comparing each subvendor with the above target column and get the cost difference and the percentage difference, somthing like below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should be dynamic, what ever selection I do in the first visual I have to compare the target min value with all the subvendors used in it can some one help me resolve this. I am attaching a sample Pbix and excel that I exported to create the 2nd visual.&lt;BR /&gt;&lt;A href="https://cscishell-my.sharepoint.com/:u:/g/personal/mseeram_csci_build/EXPvLO5ZX9pOobDcg3d940QBOWo6QaSWCWSN5Vas_rLDqA?e=e9EMmQ" target="_blank"&gt;https://cscishell-my.sharepoint.com/:u:/g/personal/mseeram_csci_build/EXPvLO5ZX9pOobDcg3d940QBOWo6QaSWCWSN5Vas_rLDqA?e=e9EMmQ&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://cscishell-my.sharepoint.com/:x:/g/personal/mseeram_csci_build/ER9F5DGXy9NIgZ-Ln15TAWgBenVYu8dMb0t6rvjkrcfqtQ?e=jinawU" target="_blank"&gt;https://cscishell-my.sharepoint.com/:x:/g/personal/mseeram_csci_build/ER9F5DGXy9NIgZ-Ln15TAWgBenVYu8dMb0t6rvjkrcfqtQ?e=jinawU&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Murali&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 20:37:27 GMT</pubDate>
    <dc:creator>Mseeram</dc:creator>
    <dc:date>2022-03-14T20:37:27Z</dc:date>
    <item>
      <title>Calculate min based on the selected values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2393518#M62346</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;I am trying to get the minimum amount based on selecting few subvendors&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;which I could able to achive it, now I need to create an other table comparing each subvendor with the above target column and get the cost difference and the percentage difference, somthing like below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should be dynamic, what ever selection I do in the first visual I have to compare the target min value with all the subvendors used in it can some one help me resolve this. I am attaching a sample Pbix and excel that I exported to create the 2nd visual.&lt;BR /&gt;&lt;A href="https://cscishell-my.sharepoint.com/:u:/g/personal/mseeram_csci_build/EXPvLO5ZX9pOobDcg3d940QBOWo6QaSWCWSN5Vas_rLDqA?e=e9EMmQ" target="_blank"&gt;https://cscishell-my.sharepoint.com/:u:/g/personal/mseeram_csci_build/EXPvLO5ZX9pOobDcg3d940QBOWo6QaSWCWSN5Vas_rLDqA?e=e9EMmQ&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://cscishell-my.sharepoint.com/:x:/g/personal/mseeram_csci_build/ER9F5DGXy9NIgZ-Ln15TAWgBenVYu8dMb0t6rvjkrcfqtQ?e=jinawU" target="_blank"&gt;https://cscishell-my.sharepoint.com/:x:/g/personal/mseeram_csci_build/ER9F5DGXy9NIgZ-Ln15TAWgBenVYu8dMb0t6rvjkrcfqtQ?e=jinawU&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Murali&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 20:37:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2393518#M62346</guid>
      <dc:creator>Mseeram</dc:creator>
      <dc:date>2022-03-14T20:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate min based on the selected values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2393724#M62364</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I struggled a bit and lost my steam. Here is what I have so far. I hope it helps&lt;/P&gt;&lt;P&gt;&lt;A title="Sub Vendors" href="https://drive.google.com/file/d/1h_jhyWK0HcHaMB4fA0VdkDwmeZEXTJcK/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1h_jhyWK0HcHaMB4fA0VdkDwmeZEXTJcK/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 01:42:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2393724#M62364</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-03-15T01:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate min based on the selected values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2395336#M62463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="179903" data-lia-user-login="Whitewater100" class="lia-mention lia-mention-user"&gt;Whitewater100&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&amp;nbsp;&lt;BR /&gt;Murali&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:55:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2395336#M62463</guid>
      <dc:creator>Mseeram</dc:creator>
      <dc:date>2022-03-15T14:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate min based on the selected values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2399890#M62743</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366564" data-lia-user-login="Mseeram" class="lia-mention lia-mention-user"&gt;Mseeram&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you tell me if your problem has been solved?&lt;/P&gt;
&lt;P&gt;If it is, kindly Accept the helpful reply as the solution. More people will benefit from it.&lt;/P&gt;
&lt;P&gt;I downloaded the attachment of A and found that %Var is not displayed. I completed it.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;STRONG&gt;&lt;EM&gt; Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 07:46:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2399890#M62743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-17T07:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate min based on the selected values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2400981#M62823</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your response, if you see my original post I have 2 screen shots, 1st one I am selecting some sub vendors and taking min among them (not overall min) and in 2nd screen shot I have to put each sub vendor againest the selected min from the 1st screen shot and calculate the $difference and %difference.&lt;BR /&gt;I am reattaching the files here.&lt;BR /&gt;&lt;A href="https://cscishell-my.sharepoint.com/:x:/g/personal/mseeram_csci_build/ERMK_KdRfGRFn3IAkTWsx14BQ5jnUMLFF_3mEt6J-kXnBQ?e=BkYG9q" target="_blank"&gt;https://cscishell-my.sharepoint.com/:x:/g/personal/mseeram_csci_build/ERMK_KdRfGRFn3IAkTWsx14BQ5jnUMLFF_3mEt6J-kXnBQ?e=BkYG9q&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://cscishell-my.sharepoint.com/:u:/g/personal/mseeram_csci_build/ETsukNaxxbNJrqzeej5b4G8BMIp4Cmrd-7CuGVE01623zA?e=2GRJkS" target="_blank"&gt;https://cscishell-my.sharepoint.com/:u:/g/personal/mseeram_csci_build/ETsukNaxxbNJrqzeej5b4G8BMIp4Cmrd-7CuGVE01623zA?e=2GRJkS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Murali&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 14:55:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2400981#M62823</guid>
      <dc:creator>Mseeram</dc:creator>
      <dc:date>2022-03-17T14:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate min based on the selected values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2420784#M64118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366564" data-lia-user-login="Mseeram" class="lia-mention lia-mention-user"&gt;Mseeram&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created three measures.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Target(min) =
CALCULATE (
    MIN ( 'Sample'[Cost] ),
    FILTER (
        ALL ( 'Sample' ),
        [Item Code] = MAX ( 'Sample'[Item Code] )
            &amp;amp;&amp;amp; [Item Desc] = MAX ( 'Sample'[Item Desc] )
    )
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Diff = SUM('Sample'[Cost])-[Target(min)]&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Percentage = DIVIDE([Diff],SUM('Sample'[Cost]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;STRONG&gt;&lt;EM&gt; Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 08:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-min-based-on-the-selected-values/m-p/2420784#M64118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-28T08:10:29Z</dc:date>
    </item>
  </channel>
</rss>

