<?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: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3644868#M141123</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="535031" data-lia-user-login="test2sa" class="lia-mention lia-mention-user"&gt;test2sa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like there might be a wider issue in the model that is being exacerbated when evaluating this measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you post more detail on the data model and a link to a shareable PBIX if possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nonetheless, as an initial improvement to this measure, I would suggest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum of Max Molds =
SUMX (
    SUMMARIZE ( 'ExcelSheet', 'ExcelSheet'[Quote] ),
    CALCULATE ( MAX ( 'ExcelSheet'[PriceOffer] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This avoids calculating Max PriceOffer within the table materialized by SUMMARIZE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's also possible that introducing a Quote dimension and iterating over that could help (depending on data):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum of Max Molds =
SUMX (
    SUMMARIZE ( 'ExcelSheet', Quote[Quote] ),
    CALCULATE ( MAX ( 'ExcelSheet'[PriceOffer] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this help at all?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jan 2024 04:01:45 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2024-01-18T04:01:45Z</dc:date>
    <item>
      <title>SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3644333#M141113</link>
      <description>&lt;P&gt;So I had a lovely formula that has worked so far, but our excel sheet just hit 6,000 rows and is only going to grow larger over time.&lt;/P&gt;&lt;P&gt;So it now fails to display the table on our PowerBI web service because it is hitting the max 1GB limit per query. I don't know if this limit can be increased, but sys admin definitely doesn't seem interested in increasing it for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel sheet looks like this:&lt;BR /&gt;Quote#&amp;nbsp; Supplier&amp;nbsp; Cavitation&amp;nbsp; PriceOffer&lt;/P&gt;&lt;P&gt;114&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $56&lt;/P&gt;&lt;P&gt;114&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $67&lt;/P&gt;&lt;P&gt;114&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DAC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $789&lt;/P&gt;&lt;P&gt;114&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DAC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$656&lt;/P&gt;&lt;P&gt;115&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FEF&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6&lt;/P&gt;&lt;P&gt;115&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ABC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;115&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DAC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;116&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;117&lt;/P&gt;&lt;P&gt;you get the idea. We have a ton of rows. The same quote number is on multiple rows because there are multiple suppliers and multiple cavitations. We want to grab the MAX price of each quote so I can display the largest number in a table in PowerBI for each quote.&lt;/P&gt;&lt;P&gt;I came up with this Measure that I could use in a table in PowerBI:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Sum of Max Molds =&lt;/SPAN&gt; &lt;SPAN&gt;sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ExcelSheet'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'ExcelSheet'&lt;/SPAN&gt;&lt;SPAN&gt;[Quote]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Mold Max Cost"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ExcelSheet'&lt;/SPAN&gt;&lt;SPAN&gt;[PriceOffer]&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;SPAN&gt;[Mold Max Cost]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;aka&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Build a summary table that displays:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Quote# and Max PriceOffer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I used sumx so it would return a&lt;STRONG&gt; single number&lt;/STRONG&gt;&amp;nbsp;that I can display in a table instead of returning a summarize table.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I know it hits the 1GB query limit because of sumx and the fact we have 6000 rows in the data now. Is there any way to make this DAX command more efficient so I stop hitting the query memory limit on the web?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If DAX were a normal programming language. I would just write:&lt;/DIV&gt;&lt;DIV&gt;Fetch all rows with same quote number, return Max(PriceOffer)&lt;/DIV&gt;&lt;DIV&gt;and that number would get displayed.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But you have to use fancy stuff like SUMMARIZE. And then you're stuck with it returning a table instead of a single value to display&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I've been banging my head against the desk for days now.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 20:32:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3644333#M141113</guid>
      <dc:creator>test2sa</dc:creator>
      <dc:date>2024-01-17T20:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3644868#M141123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="535031" data-lia-user-login="test2sa" class="lia-mention lia-mention-user"&gt;test2sa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like there might be a wider issue in the model that is being exacerbated when evaluating this measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you post more detail on the data model and a link to a shareable PBIX if possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nonetheless, as an initial improvement to this measure, I would suggest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum of Max Molds =
SUMX (
    SUMMARIZE ( 'ExcelSheet', 'ExcelSheet'[Quote] ),
    CALCULATE ( MAX ( 'ExcelSheet'[PriceOffer] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This avoids calculating Max PriceOffer within the table materialized by SUMMARIZE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's also possible that introducing a Quote dimension and iterating over that could help (depending on data):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum of Max Molds =
SUMX (
    SUMMARIZE ( 'ExcelSheet', Quote[Quote] ),
    CALCULATE ( MAX ( 'ExcelSheet'[PriceOffer] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this help at all?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 04:01:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3644868#M141123</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2024-01-18T04:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3644877#M141125</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file whether it suits your requirement.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 04:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3644877#M141125</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-18T04:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646401#M141224</link>
      <description>&lt;P&gt;EDIT: I've added more info about an IF statement in another reply. That might be part of my memory query limit issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the reason I can't simply use an easy measure like this:&lt;BR /&gt;Max Mold Cost = MAX&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'ExcelSheet'&lt;/SPAN&gt;&lt;SPAN&gt;[PriceOffer]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;is because the way the table sums values at the bottom.&lt;/P&gt;&lt;P&gt;MAX displays the correct value in each row of the table, but the sum at the bottom of the table is totally incorrect. Which is why I came up with the complicated formula to make it work. And it now can't work anymore because of the query memory limit I'm smacking into.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example to show the difference:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quote#&amp;nbsp; Sum of Max Molds&amp;nbsp; &amp;nbsp; JUST MAX&lt;/P&gt;&lt;P&gt;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$24,000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $24,000&lt;/P&gt;&lt;P&gt;456&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$666,000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $666,000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt; $690,000&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;$666,000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total that PowerBI generates at the bottom of the table is wrong when using only MAX() in my measure. So I had to do the complicated thing:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum of Max Molds = sumx( SUMMARIZE('ExcelSheet','ExcelSheet'[Quote], "Mold Max Cost", Max('ExcelSheet'[PriceOffer])), [Mold Max Cost])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to get it to display the total at the bottom of the table properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But now it can't because of the query memory limit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd forgotten why I'd done this in such a complicated way, but it was because of the Total at the bottom of the table being wrong, not the individual quote rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data model is just one table made from an excel sheet. It's exactly as I showed in my first post. Quote Number and Price and everything else are all in the same table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried out your CALCULATE idea, but something is wrong. SUMMARIZE doesn't accept these argument types. I moved the parentheses around a bunch thinking you misplaced something, but it's not working no matter what I try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would happy to only use MAX() in my measure if there was any way to control how the Total at the bottom of the table calculates itself. It should be summing to get the total, not just grabbing the max value in the list and displaying that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 19:16:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646401#M141224</guid>
      <dc:creator>test2sa</dc:creator>
      <dc:date>2024-01-18T19:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646404#M141225</link>
      <description>&lt;P&gt;Please see my response to the other guy. I explain my issue in more detail.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 17:01:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646404#M141225</guid>
      <dc:creator>test2sa</dc:creator>
      <dc:date>2024-01-18T17:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646514#M141232</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you for your message.&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;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Max Price Offer: =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Quote Number'&lt;/SPAN&gt;&lt;SPAN&gt;[quote number]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'&lt;/SPAN&gt;&lt;SPAN&gt;[price offer]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Jan 2024 18:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646514#M141232</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-18T18:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646595#M141238</link>
      <description>&lt;P&gt;Sorry, I got a little too excited. That statement does work, but I'm still hitting the memory query limit on the server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I just display&lt;/P&gt;&lt;P&gt;&amp;nbsp;Max Price Offer: = SUMX( VALUES('Quote Number'[quote number]), CALCULATE(MAX('Data'[price offer])) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or even my original code:&lt;/P&gt;&lt;P&gt;Sum of Max Molds = sumx( SUMMARIZE('ExcelSheet','ExcelSheet'[Quote], "Mold Max Cost", Max('ExcelSheet'[PriceOffer])), [Mold Max Cost])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will display that without running out of memory.&lt;/P&gt;&lt;P&gt;But as soon I add an IF statement, it runs out of memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 different types of molds in the same spreadsheet that require different calculations to get the correct value. For each quote, the only way I know what type of mold it is is based on which price calculation is NOT zero. So the if statement looks for the NOT-zero value to display that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried the IF statement in two different ways and it still runs out of memory:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Price = IF([Mold Type 1 Price] + [Mold Type 2 Price] &amp;gt; 0, [Mold Type 1 Price] + [Mold Type 2 Price], [Mold Type 3 Price] )&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I've tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Price = IF([Mold Type 1 Price] &amp;gt; 0 || [Mold Type 2 Price] &amp;gt; 0, [Mold Type 1 Price] + [Mold Type 2 Price], [Mold Type 3 Price] )&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mold Type 3 is the formula we've been talking about:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Mold Type 3 = SUMX( VALUES('Quote Number'[quote number]), CALCULATE(MAX('Data'[price offer])) )&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mold Type 1 and Mold Type 2 are not complicated. I'm just adding together certain columns from the spreadsheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mold Type 1 = SUM('ExcelSheet'[columnA]) + SUM('ExcelSheet'[columnB]) + SUM('ExcelSheet'[colD]) etc etc&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Mold Type 2 = SUM('ExcelSheet'[columnE]) + SUM('ExcelSheet'[columnF]) + SUM('ExcelSheet'[colG]) etc etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is the IF statement causing it to run out of memory?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think SUMX is the most memory intensive, but it works until the IF statement gets added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 19:10:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646595#M141238</guid>
      <dc:creator>test2sa</dc:creator>
      <dc:date>2024-01-18T19:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646720#M141243</link>
      <description>&lt;P&gt;If I display [Mold Type 1 Price], [Mold Type 2 Price], [Mold Type 3 Price] in their own seperate columns in the table, it works fine. I suppose because it has been split into 3 different queries since it is 3 different columns, so it doesn't hit the query memory limit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But we want to display the price in one column so the table is less messy to read. So I add the IF statement to accomplish that and it hits the query memory limit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to make it efficient enough that I can get it into one column?&lt;/P&gt;&lt;P&gt;Is there a way to make Mold Type 1 and Mold Type 2 more efficient?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's kinda frustrating. I'm assuming SUMX in Mold Type 3 is the biggest memory hog, but I don't know that for sure. I don't have any way to look at memory drain of each individual piece. I just know its failing to display on the server because of query memory limit being 1GB max.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2024 21:01:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3646720#M141243</guid>
      <dc:creator>test2sa</dc:creator>
      <dc:date>2024-01-18T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: SUMX, SUMMARIZE - need help. I'm hitting the 1GB query size limit!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3647210#M141255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please share your sample pbix file, and then I can try to look into it.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 03:55:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMX-SUMMARIZE-need-help-I-m-hitting-the-1GB-query-size-limit/m-p/3647210#M141255</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-19T03:55:26Z</dc:date>
    </item>
  </channel>
</rss>

