<?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: Issue getting maximum value of measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1862912#M39921</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the most accurate solution is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Max_Count_Of_Claims_Paid: = VAR ValuesDisplayed =&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;SUMMARIZE(Claim,Provider[ChainName],Claim_LastUpdate[year],Claim_LastUpdate[MonthName]),"@Claim_Count", Claim[Count_Of_Claims_Paid]),&lt;BR /&gt;ALLSELECTED()&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;VAR MAXVAL=MAXX(ValuesDisplayed,[@Claim_Count])&lt;BR /&gt;return MAXVAL&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 14:57:48 GMT</pubDate>
    <dc:creator>Brycert</dc:creator>
    <dc:date>2021-05-25T14:57:48Z</dc:date>
    <item>
      <title>Issue getting maximum value of measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825030#M38727</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am brand new to this forum so forgive me if I missed something. Here is my issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within power bi I have formed a report which is simply (initially) a count of claims per Pharmacy Chain. The report looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I sorted the list intentionally by "Count_of_Claims_Paid" (a measure) to underscore my issues. Now all I want to do is to retreive the maximum value of this measure in order to compare each ChainName against the that maximum value. I have tried literally everything from summarized tables, various groupings all to no avail as quite often the maximum Im finding is simply the count_of_claims for that same rows which is obviously incorrect. I simply want to retreive the value (in the context of the posted image which is sliced by month and year) which in this current context is 520736. The only simply way I could find was this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max_Count_Of_Claims_Paid = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX(ALL(Claim_partition_v1),Claim_partition_v1[Count_Of_Claims_Paid]) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But this leads to the error "Insufficient resource available.." in Power bi desktop and when I try to publish it to the power bi service, I get this error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Resource Governing: The memory used by the query exceeded the configured limit. The query or calculations referenced by it might be too memory intensive. Please consider simplifying the query or calculations. If the dataset is hosted on a dedicated capacity/server, you may also reach out to your capacity/server administrator to see if the per-query memory limit can be increased. Additional information: Requested 3541300KB, Limit 3355443KB. Technical Details: RootActivityId:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is there no simple way to retreive this value othen than scanning the entire Claim_partition_v1 table? I simply want the maximum per year/month filter.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 May 2021 13:44:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825030#M38727</guid>
      <dc:creator>Brycert</dc:creator>
      <dc:date>2021-05-05T13:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting maximum value of measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825073#M38728</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299977" data-lia-user-login="Brycert" class="lia-mention lia-mention-user"&gt;Brycert&lt;/a&gt; , Refer if these two can help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=6cd37af6-e634-4497-afb8-20e7e9ddaf26&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer" target="_blank"&gt;https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=6cd37af6-e634-4497-afb8-20e7e9ddaf26&amp;amp;CommunityKey=b35c8468-2fd8-4e1a-8429-322c39fe7110&amp;amp;tab=digestviewer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://windowsreport.com/memory-error-allocation-failure/" target="_blank"&gt;https://windowsreport.com/memory-error-allocation-failure/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check formula like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max_Count_Of_Claims_Paid =&lt;BR /&gt;MAXX(Summarize((Claim_partition_v1), Claim_partition_v1[chain_name],Claim_partition_v1[Month name],Claim_partition_v1[year],"_1",Claim_partition_v1[Count_Of_Claims_Paid]), [_1])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max_Count_Of_Claims_Paid =&lt;BR /&gt;MAXX(Summarize(All(Claim_partition_v1), Claim_partition_v1[chain_name],Claim_partition_v1[Month name],Claim_partition_v1[year],"_1",Claim_partition_v1[Count_Of_Claims_Paid]), [_1])&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 13:58:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825073#M38728</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-05T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting maximum value of measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825104#M38729</link>
      <description>&lt;P&gt;Thank you folr your prompt reply. I should have said that the chain name is coming from a table called "Provider" and the "Month" and "year" columns are coming from a "Datedim" table. How would the calculation be changed knowing this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:13:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825104#M38729</guid>
      <dc:creator>Brycert</dc:creator>
      <dc:date>2021-05-05T14:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting maximum value of measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825113#M38732</link>
      <description>&lt;P&gt;Hi Amit, changing the measure to reflect the correct table names, namely this (per your suggestion) i.e.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max_Count_Of_Claims_Paid = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX(Summarize((Claim_partition_v1), Provider[ChainName],Claim_LastUpdate[MonthName],Claim_LastUpdate[year],"_1",Claim_partition_v1[Count_Of_Claims_Paid]), [_1]) yields this:&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;</description>
      <pubDate>Wed, 05 May 2021 14:17:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825113#M38732</guid>
      <dc:creator>Brycert</dc:creator>
      <dc:date>2021-05-05T14:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting maximum value of measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825116#M38733</link>
      <description>&lt;P&gt;So the grand total is correct, just not the individual rows.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:18:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825116#M38733</guid>
      <dc:creator>Brycert</dc:creator>
      <dc:date>2021-05-05T14:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting maximum value of measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825132#M38734</link>
      <description>&lt;P&gt;Hi Amit, I actually tried your second formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max_Count_Of_Claims_Paid = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX(Summarize((ALL(Claim_partition_v1)), Provider[ChainName],Claim_LastUpdate[MonthName],Claim_LastUpdate[year],"_1",Claim_partition_v1[Count_Of_Claims_Paid]), [_1]) and it works!! Thank so much with my compliments!&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;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 May 2021 14:27:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825132#M38734</guid>
      <dc:creator>Brycert</dc:creator>
      <dc:date>2021-05-05T14:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting maximum value of measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825688#M38753</link>
      <description>&lt;P&gt;Correction folks the actual answer is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max_Count_Of_Claims_Paid = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX(Summarize(Claim_partition_v1, Provider[ChainName],Claim_LastUpdate[MonthName],Claim_LastUpdate[year],"_1",Claim_partition_v1[Count_Of_Claims_Paid]), [_1])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 May 2021 19:23:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1825688#M38753</guid>
      <dc:creator>Brycert</dc:creator>
      <dc:date>2021-05-05T19:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue getting maximum value of measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1862912#M39921</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the most accurate solution is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Max_Count_Of_Claims_Paid: = VAR ValuesDisplayed =&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;SUMMARIZE(Claim,Provider[ChainName],Claim_LastUpdate[year],Claim_LastUpdate[MonthName]),"@Claim_Count", Claim[Count_Of_Claims_Paid]),&lt;BR /&gt;ALLSELECTED()&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;VAR MAXVAL=MAXX(ValuesDisplayed,[@Claim_Count])&lt;BR /&gt;return MAXVAL&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 14:57:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-getting-maximum-value-of-measure/m-p/1862912#M39921</guid>
      <dc:creator>Brycert</dc:creator>
      <dc:date>2021-05-25T14:57:48Z</dc:date>
    </item>
  </channel>
</rss>

