<?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 and MaxX on a Measure while filtering for a Category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707305#M82129</link>
    <description>&lt;P&gt;Sorry, should&amp;nbsp;have clarified, yes each dot represents a store. So we graphed them with cost % on the y axis and revenue on the x axis. I know that it should be flipped as revenus is the dependant variable but thats how the company wanted it graphed.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 15:47:27 GMT</pubDate>
    <dc:creator>james_pease</dc:creator>
    <dc:date>2022-08-17T15:47:27Z</dc:date>
    <item>
      <title>MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2704692#M81988</link>
      <description>&lt;P&gt;Hello everyone and thank you in Advance. I am still fairly new to DAX and starting to get the grasp of it. I am still having a problem trying to use the Min and Max commands (I tried MIN, MINA, MINX, etc) when applying the forumla on a measure. I believe I need to use MINX and MAXX since it refers to a measure. I might need to make these measure in the table I am referencing the measure too (I had to do this for RANKX to work) but Im honestly not sure as I have tried that as well. Here is my syntax:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Food Cost Max = IF([Cost %]&amp;gt;0, MAXX(FILTER(ChartOfAcounts, [Category] = "Food Cost"), All_Actual_Expenses[Cost %]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;For context, Cost % is a measure that divides Revenues by Expenses. We assigned Category Numbers to each expense and Revenue. The categories are outlined in a different table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So basically I am trying to create Mins and Maxs for Food Cost, Labor cost, and Gross Cost to be able to set up an 'Outliers' Group to put into a different visual. The idea is for this visualization to consistly show outliers.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, I cant get there unless I fix the Max and Min formulas. I am expecting to see the Min be 30.85% and the Max be 37.37% (I have circled these in the image below).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are results with the above formula&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Again, thanks in advance!!&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Aug 2022 15:48:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2704692#M81988</guid>
      <dc:creator>james_pease</dc:creator>
      <dc:date>2022-08-17T15:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2705024#M81996</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421909" data-lia-user-login="james_pease" class="lia-mention lia-mention-user"&gt;james_pease&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what does each dot represent? A store?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 03:45:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2705024#M81996</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-17T03:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707305#M82129</link>
      <description>&lt;P&gt;Sorry, should&amp;nbsp;have clarified, yes each dot represents a store. So we graphed them with cost % on the y axis and revenue on the x axis. I know that it should be flipped as revenus is the dependant variable but thats how the company wanted it graphed.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 15:47:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707305#M82129</guid>
      <dc:creator>james_pease</dc:creator>
      <dc:date>2022-08-17T15:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707323#M82130</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421909" data-lia-user-login="james_pease" class="lia-mention lia-mention-user"&gt;james_pease&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Is&amp;nbsp;&lt;STRONG&gt;[Category]&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;a column or a measure?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 15:55:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707323#M82130</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-17T15:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707354#M82138</link>
      <description>&lt;P&gt;Category is a Column from a table named 'ChartOfAccounts'&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:11:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707354#M82138</guid>
      <dc:creator>james_pease</dc:creator>
      <dc:date>2022-08-17T16:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707386#M82142</link>
      <description>&lt;P&gt;Also, I am using a data slicer to filter the 5 companies separetly. So I am looking to pull the outliers for each company separetly. So I will be making 5 separate visualizations or 1 visualizations but have the min and max be categorized by each company. I think that is a simple filter(company name that I can add to the mins and maxs formulas.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:22:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707386#M82142</guid>
      <dc:creator>james_pease</dc:creator>
      <dc:date>2022-08-17T16:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707401#M82143</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421909" data-lia-user-login="james_pease" class="lia-mention lia-mention-user"&gt;james_pease&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Food Cost Max =
MAXX (
    CALCULATETABLE (
        VALUES ( ChartOfAcounts[Store_ID] ),
        'ChartOfAccounts'[Category] = "Food Cost"
    ),
    CALCULATE ( [Cost %], 'ChartOfAccounts'[Category] = "Food Cost" )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:26:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707401#M82143</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-17T16:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707421#M82145</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421909" data-lia-user-login="james_pease" class="lia-mention lia-mention-user"&gt;james_pease&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes should not be an issue. Have you tried my proposed formula?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707421#M82145</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-17T16:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: MinX and MaxX on a Measure while filtering for a Category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707438#M82146</link>
      <description>&lt;P&gt;Thank you so much! I only had to modify the Store ID section (we have stores in a different table) but worked like a charm! Thanks again! Now I can replicate the formula for the other cost measures and add a filter clause to ensure each company is being calculated separately.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:45:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MinX-and-MaxX-on-a-Measure-while-filtering-for-a-Category/m-p/2707438#M82146</guid>
      <dc:creator>james_pease</dc:creator>
      <dc:date>2022-08-17T16:45:21Z</dc:date>
    </item>
  </channel>
</rss>

