<?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: Max per category dependent on filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3015201#M102373</link>
    <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;try like:
MaxIndex =
VAR _entry = MAX('table'[Entry_No]
RETURN
MAXX(
    FILTER('Table', 'Table'[Entry_No]=_entry),
    'Table'[Index])
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 12 Jan 2023 00:42:22 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-01-12T00:42:22Z</dc:date>
    <item>
      <title>Max per category dependent on filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3014458#M102336</link>
      <description>&lt;P&gt;Hope someone can assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to see the max index per category (in my example, Entry_No) but I want this to dynamically calulcate based on a date slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure I am using currently is as below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MaxIndex = 
    CALCULATE(
        MAX('Table'[Index]),
        ALLEXCEPT('Table', 'Table'[Entry_No])
        )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it's working as expected:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But when I change the date slicer:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want this second example to show MaxIndex as 1 as that's the max index for the date slicer provided. I think it's due to me using ALLEXCEPT in my measure, I've tried playing with different variations of ALL but can't seem to get it working. Anyone able to assist?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 16:31:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3014458#M102336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-11T16:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Max per category dependent on filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3014934#M102362</link>
      <description>&lt;P&gt;assuming linkdate is also in the same table, could you try add that to the ALLEXCEPT parameters?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...  ALLEXCEPT('Table', 'Table'[Entry_No], 'Table'[LinkDate])&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Jan 2023 21:25:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3014934#M102362</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-01-11T21:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Max per category dependent on filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3015201#M102373</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;try like:
MaxIndex =
VAR _entry = MAX('table'[Entry_No]
RETURN
MAXX(
    FILTER('Table', 'Table'[Entry_No]=_entry),
    'Table'[Index])
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Jan 2023 00:42:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3015201#M102373</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-12T00:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Max per category dependent on filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3015382#M102380</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, you want to get the max Index&amp;nbsp; and it can work on the date slicer.&lt;/P&gt;
&lt;P&gt;Here are the steps you can refer to :&lt;/P&gt;
&lt;P&gt;(1)This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2)We can create&amp;nbsp; a&amp;nbsp; measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MaxIndex = var _cur_No  =  MAX('Table'[Entry_No])
var _t = FILTER( ALLSELECTED('Table') , 'Table'[Entry_No]=_cur_No)
return
MAXX(_t , [Index])&lt;/LI-CODE&gt;
&lt;P&gt;(3)Then we can meet your need , the result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 02:08:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3015382#M102380</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-01-12T02:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Max per category dependent on filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3016096#M102428</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 08:25:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3016096#M102428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-12T08:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Max per category dependent on filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3016244#M102435</link>
      <description>&lt;P&gt;Thanks Vicky but unfortunately this didn't work for me, it didn't give the max index per my category (Entry_No) - the other solutions provided did work however, I needed to use variables. Thanks for your suggestion anyhow!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 09:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3016244#M102435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-12T09:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Max per category dependent on filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3016246#M102436</link>
      <description>&lt;P&gt;Thanks Aniya, this worked a treat!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 09:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3016246#M102436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-12T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Max per category dependent on filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3016249#M102437</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;this worked also!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 09:01:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Max-per-category-dependent-on-filter/m-p/3016249#M102437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-12T09:01:31Z</dc:date>
    </item>
  </channel>
</rss>

