<?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: Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4282413#M169949</link>
    <description>&lt;P&gt;Thank you for the suggestion! I really appreciate the insights. I’ll definitely try creating a summarized table at the month level since we typically view this indicator at a monthly minimum. This should hopefully reduce the strain on resources and allow for smoother calculations. Thanks again for pointing me in the right direction!&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2024 19:30:09 GMT</pubDate>
    <dc:creator>FelipMark</dc:creator>
    <dc:date>2024-11-13T19:30:09Z</dc:date>
    <item>
      <title>Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4271210#M169411</link>
      <description>&lt;P&gt;Hi Power BI Community,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm working on an ABC analysis for our product sales data, but I keep running into a "Resources Exceeded" error whenever I try to create the DAX measure for this calculation. Our dataset is quite large, with detailed sales records at the product level. Here’s what I’ve attempted so far:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Data Structure&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My sales table (SalesFact) has individual sales records, including columns like ProductDescription (product description), TotalItem (total sales amount per line), and Status (indicating if the sale is "Normal").&lt;/LI&gt;&lt;LI&gt;I've created a supporting table for the ABC classes with columns defining ranges (e.g., LowerLimit and UpperLimit for class limits).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Current Measures&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have a [Sales] measure to sum sales for "Normal" status:&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Sales = CALCULATE(SUM(SalesFact[TotalItem]), SalesFact[Status] = "Normal")&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;To calculate the cumulative sales percentage (ParetoPercentage), I’m dividing an accumulated sales measure (CumulativeSalesValue) by the total sales.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Issues Encountered&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I've tried different ways to structure these measures, including creating cumulative totals and classifying products based on the cumulative percentage for Pareto analysis. However, each attempt ends up with the "Resources Exceeded" error, likely due to the detailed level of data and the complex filtering needed for each ABC class.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: Has anyone successfully performed an ABC analysis with large, detailed datasets in Power BI? I’d love to hear any methods or optimizations that worked for you, especially if there’s a more efficient DAX approach to handle cumulative calculations or class segmentation with high volumes of data.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 18:30:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4271210#M169411</guid>
      <dc:creator>FelipMark</dc:creator>
      <dc:date>2024-11-05T18:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4271302#M169417</link>
      <description>&lt;P&gt;This type of run time calculation on large data will always be slow. I'm not surprised to hear of your issues. Anything you can do to remove unnecessary resource theft will help. I suggest remove the product description from the fact table and put it in a product table, ideally with an integer as the key for the relationship. Also, check the precision of the sales value column. Reducing precision should help, eg round to the nearest integer. Consider summarising the data across dimensions that don't matter for this calculation, eg if your data is at day level of granularity but you only do these calculations at a month level, consider creating a summarised table of data at the month level only for this calculation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 20:10:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4271302#M169417</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-11-05T20:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4271331#M169420</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="485055" data-lia-user-login="FelipMark" class="lia-mention lia-mention-user"&gt;FelipMark&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I usually works on large process data in direct query mode and used to get this error. There is no specific method of DAX optimization. It's depending upon the data model and how you do query. One thing I will suggest, don't use any row level operation like sumx, maxx, minx etc. these consumes maximum resource. Hope you are not using sumx here for cumulative calculation.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 20:38:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4271331#M169420</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-11-05T20:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4272890#M169498</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use visual "Pareto+" to create a graph and table or "Pareto by sio2Graphs" to produce the graph.&lt;/P&gt;&lt;P&gt;The Total Cost is on the left with the cumulative % shown on the right and displayed on the arc.&amp;nbsp; The number of units is on the x-Axis with a random name.&amp;nbsp; I have put the Total units by Class and Percentage by Class in the Tooltips.&lt;/P&gt;&lt;P&gt;If you have hundreds of categories, remove the padding and margins and if the labels won’t even fit vertically, you can turn off the x-Axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sio2Graphs&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;cynthia@sio2graphs.com&lt;/P&gt;&lt;P&gt;&lt;A href="https://appsource.microsoft.com/en-us/marketplace/apps?page=1&amp;amp;search=sio2graphs" target="_blank"&gt;sio2graphs on AppSource&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 18:30:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4272890#M169498</guid>
      <dc:creator>sio2Graphs</dc:creator>
      <dc:date>2024-11-06T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4282413#M169949</link>
      <description>&lt;P&gt;Thank you for the suggestion! I really appreciate the insights. I’ll definitely try creating a summarized table at the month level since we typically view this indicator at a monthly minimum. This should hopefully reduce the strain on resources and allow for smoother calculations. Thanks again for pointing me in the right direction!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 19:30:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4282413#M169949</guid>
      <dc:creator>FelipMark</dc:creator>
      <dc:date>2024-11-13T19:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4288320#M170198</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="485055" data-lia-user-login="FelipMark" class="lia-mention lia-mention-user"&gt;FelipMark&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 06:51:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4288320#M170198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-18T06:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4403748#M174815</link>
      <description>&lt;P&gt;Thanks for your suggestions!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To optimize performance, I already aggregated my sales data in Power Query before loading it into Power BI. My transformation removes unnecessary columns, filters only "Normal" sales, and groups data at the store, product, and month level. Here’s the Power Query code I’m using:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = fVendas,

    // 1. Filtering records before any transformation
    FilterNormal = Table.SelectRows(Source, each [situacao] = "Normal"),

    // 2. Selecting only the necessary columns before processing the data
    SelectColumns = Table.SelectColumns(FilterNormal, {"DATA_EMISS", "lkpdv", "LKEMPRESA", "LKPRODUTO", "TotalItem", "QUANTIDADE"}),

    // 3. Creating Month and Year columns (keeping DATA_EMISS as a date)
    AddMonth = Table.AddColumn(SelectColumns, "Month", each Date.Month([DATA_EMISS]), Int64.Type),
    AddYear = Table.AddColumn(AddMonth, "Year", each Date.Year([DATA_EMISS]), Int64.Type),

    // 4. Creating a Reference Date column (first day of the month)
    AddReferenceDate = Table.AddColumn(AddYear, "ReferenceDate", each #date([Year], [Month], 1), type date),

    // 5. Grouping data to reduce volume before further operations, including QUANTIDADE (Quantity)
    GroupedData = Table.Group(AddReferenceDate, {"Year", "Month", "ReferenceDate", "lkpdv", "LKEMPRESA", "LKPRODUTO"}, 
        {{"TotalValue", each List.Sum([TotalItem]), type number},
         {"TotalQuantity", each List.Sum([QUANTIDADE]), type number}}),
    
    // 6. Changing data type for better usability
    #"Changed Type" = Table.TransformColumnTypes(GroupedData,{{"TotalValue", Currency.Type}})
in
    #"Changed Type"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even after summarizing the data, I still run into the "Resources Exceeded" error when calculating cumulative sales for the Pareto percentage in my ABC analysis.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Given that my sales table has over 10 million rows and the product table contains more than 20,000 products, do you have any additional suggestions?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Would a different DAX approach or another pre-aggregation step help optimize cumulative calculations at scale?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 21:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4403748#M174815</guid>
      <dc:creator>FelipMark</dc:creator>
      <dc:date>2025-02-10T21:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Optimizing ABC Analysis in Power BI with Large Sales Data – Exceeding Resources Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4776085#M182917</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="485055" data-lia-user-login="FelipMark" class="lia-mention lia-mention-user"&gt;FelipMark&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I might be a bit late to the party, but I just found a way to perform a fully dynamic ABC-Analysis which works with huge datasets.&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/running-total-performance-issues/m-p/4776039" target="_self"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/running-total-performance-issues/m-p/4776039&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 07:13:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Optimizing-ABC-Analysis-in-Power-BI-with-Large-Sales-Data/m-p/4776085#M182917</guid>
      <dc:creator>AMeyersen</dc:creator>
      <dc:date>2025-07-25T07:13:56Z</dc:date>
    </item>
  </channel>
</rss>

