<?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: MINX of Measure not behaving as expected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046323#M104711</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Min Margin = 
  VAR __Table = SUMMARIZE(ALL('Historical ASP'),[Country],"__Margin",[Margin])
  VAR __Result = MINX(__Table,[__Margin])
RETURN
  __Result&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 26 Jan 2023 23:39:43 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-01-26T23:39:43Z</dc:date>
    <item>
      <title>MINX of Measure not behaving as expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046275#M104704</link>
      <description>&lt;P&gt;I have a slicer to select a Country, and a table with 3 measures based on this slicer. The three measures are: Average Historical ASP, Average Material Cost, and Margin. I am trying to add a 4th measure which finds the minimum value from all values in the Margin column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula I am currently using is:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Min Margin = &lt;/SPAN&gt;&lt;SPAN&gt;MINX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Historical ASP'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Margin]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&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;&lt;P&gt;I would expect that with all Country values selected, it should show 3.27 as Min Margin for all rows in the above. Where am I going wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 23:01:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046275#M104704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-26T23:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: MINX of Measure not behaving as expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046323#M104711</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Min Margin = 
  VAR __Table = SUMMARIZE(ALL('Historical ASP'),[Country],"__Margin",[Margin])
  VAR __Result = MINX(__Table,[__Margin])
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Jan 2023 23:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046323#M104711</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-01-26T23:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: MINX of Measure not behaving as expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046326#M104712</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems on the wrong granularity,&amp;nbsp; try like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Min Margin =
MINX(
    SUMMARIZE(
        'Historical ASP', 
        'Historical ASP'[Country], 
        'Historical ASP'[PH7]
    ),
    [Margin]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Jan 2023 23:51:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046326#M104712</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-26T23:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: MINX of Measure not behaving as expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046367#M104718</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Thanks that works. Was wondering, if I wanted to measure MINX only for selected Country fields from the slicer, where do I add that in?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 00:41:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046367#M104718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-27T00:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: MINX of Measure not behaving as expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046492#M104732</link>
      <description>&lt;P&gt;Try ALLSELECTED instead of ALL.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 03:41:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MINX-of-Measure-not-behaving-as-expected/m-p/3046492#M104732</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2023-01-27T03:41:15Z</dc:date>
    </item>
  </channel>
</rss>

