<?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: Urgent help on DAX - MAX index in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816459#M149259</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601759" data-lia-user-login="Newbie12345" class="lia-mention lia-mention-user"&gt;Newbie12345&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;To find the index of the maximum value of a measure in Power BI, you can use the DAX function MAXX along with FILTER to iterate through the table and find the row with the highest ‘KG’ value. Here’s an example of how you might write this measure:&lt;/P&gt;&lt;PRE&gt;MaxKGIndex = 
VAR MaxKGValue = MAXX(ALL(Table1), [KG])
RETURN
CALCULATE(
    MIN(Table1[Index]),
    FILTER(
        ALL(Table1),
        [KG] = MaxKGValue
    )
)&lt;/PRE&gt;&lt;P&gt;This measure calculates the maximum ‘KG’ value across all rows in ‘Table1’ and then finds the corresponding ‘Index’ where this maximum value occurs. The ALL function is used to remove any filters that might limit the rows being evaluated. Remember to replace ‘Table1’ with the actual name of your table.&lt;/P&gt;&lt;P&gt;Please note that if there are multiple rows with the same maximum ‘KG’ value, this measure will return the smallest index among them. If you need further assistance or have more specific requirements, feel free to ask! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 07 Apr 2024 08:50:23 GMT</pubDate>
    <dc:creator>AnalyticsWizard</dc:creator>
    <dc:date>2024-04-07T08:50:23Z</dc:date>
    <item>
      <title>Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816451#M149258</link>
      <description>&lt;P&gt;Dear Power BI Pros,&lt;BR /&gt;&lt;BR /&gt;I need your urgent help on finding the max value.&lt;/P&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 want to get the index of max KG.&lt;BR /&gt;KG is my measure.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 08:42:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816451#M149258</guid>
      <dc:creator>Newbie12345</dc:creator>
      <dc:date>2024-04-07T08:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816459#M149259</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601759" data-lia-user-login="Newbie12345" class="lia-mention lia-mention-user"&gt;Newbie12345&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;To find the index of the maximum value of a measure in Power BI, you can use the DAX function MAXX along with FILTER to iterate through the table and find the row with the highest ‘KG’ value. Here’s an example of how you might write this measure:&lt;/P&gt;&lt;PRE&gt;MaxKGIndex = 
VAR MaxKGValue = MAXX(ALL(Table1), [KG])
RETURN
CALCULATE(
    MIN(Table1[Index]),
    FILTER(
        ALL(Table1),
        [KG] = MaxKGValue
    )
)&lt;/PRE&gt;&lt;P&gt;This measure calculates the maximum ‘KG’ value across all rows in ‘Table1’ and then finds the corresponding ‘Index’ where this maximum value occurs. The ALL function is used to remove any filters that might limit the rows being evaluated. Remember to replace ‘Table1’ with the actual name of your table.&lt;/P&gt;&lt;P&gt;Please note that if there are multiple rows with the same maximum ‘KG’ value, this measure will return the smallest index among them. If you need further assistance or have more specific requirements, feel free to ask! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Apr 2024 08:50:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816459#M149259</guid>
      <dc:creator>AnalyticsWizard</dc:creator>
      <dc:date>2024-04-07T08:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816497#M149266</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="707047" data-lia-user-login="AnalyticsWizard" class="lia-mention lia-mention-user"&gt;AnalyticsWizard&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you so much for your response.&amp;nbsp;&lt;BR /&gt;I tried it, unfortunately it is saying 'Visual is exceeded the available resourses' even after selecting single category.&lt;BR /&gt;Could you please help around with this?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 10:14:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816497#M149266</guid>
      <dc:creator>Newbie12345</dc:creator>
      <dc:date>2024-04-07T10:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816525#M149267</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601759" data-lia-user-login="Newbie12345" class="lia-mention lia-mention-user"&gt;Newbie12345&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can refer below link for error solving&amp;nbsp;&lt;A href="https://blog.crossjoin.co.uk/2023/06/18/the-visual-has-exceeded-the-available-resources-error-in-power-bi-desktop/" target="_self"&gt;LINK&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 11:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3816525#M149267</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-04-07T11:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3817144#M149286</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601759" data-lia-user-login="Newbie12345" class="lia-mention lia-mention-user"&gt;Newbie12345&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Expected Output =&lt;BR /&gt;VAR T =&lt;BR /&gt;GENERATE (&lt;BR /&gt;VALUES ( 'Table'[Category] ),&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;TOPN ( 1, SUMMARIZE ( 'Table', 'Table'[Kg], 'Table'[Index] ), 'Table'[Kg] ),&lt;BR /&gt;ALLEXCEPT ( 'Table', 'Table'[Category] )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MAXX ( T, 'Table'[Index] )&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 21:33:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3817144#M149286</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-07T21:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3817625#M149301</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your response!&amp;nbsp;&lt;BR /&gt;KG is not a column, it is a measure, could pls you suggest me how to pass KG measure inside calculatetable.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 05:27:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3817625#M149301</guid>
      <dc:creator>Newbie12345</dc:creator>
      <dc:date>2024-04-08T05:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3819795#M149382</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="601759" data-lia-user-login="Newbie12345" class="lia-mention lia-mention-user"&gt;Newbie12345&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Expected Output =&lt;BR /&gt;VAR T =&lt;BR /&gt;GENERATE (&lt;BR /&gt;VALUES ( 'Table'[Category] ),&lt;BR /&gt;CALCULATETABLE (&lt;BR /&gt;TOPN ( 1, SUMMARIZE ( 'Table', 'Table'[Index] ), [Kg] ),&lt;BR /&gt;ALL ( 'Table'[Index] )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MAXX ( T, 'Table'[Index] )&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 12:57:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3819795#M149382</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2024-04-08T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3823270#M149523</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you so much, I will try this.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:21:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3823270#M149523</guid>
      <dc:creator>Newbie12345</dc:creator>
      <dc:date>2024-04-09T11:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help on DAX - MAX index</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3823275#M149525</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 11:22:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Urgent-help-on-DAX-MAX-index/m-p/3823275#M149525</guid>
      <dc:creator>Newbie12345</dc:creator>
      <dc:date>2024-04-09T11:22:46Z</dc:date>
    </item>
  </channel>
</rss>

