<?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: Slow and infunctional Pareto calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3925303#M152956</link>
    <description>&lt;P&gt;You already posted that here&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3923891#M152686" target="_blank"&gt;Re: Slow and infunctional Pareto calculation - Microsoft Fabric Community&lt;/A&gt;&amp;nbsp; - what is different this time?&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2024 01:31:25 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-05-17T01:31:25Z</dc:date>
    <item>
      <title>Slow and infunctional Pareto calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3921310#M152619</link>
      <description>&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;I need help creating a DAX measure that calculates Pareto (80:20). All the measures I have taken so far have resulted in failure, as it is taking a long time to load and sometimes it does not load, as it exceeds the available memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data model is very simple, I have a product dimension table related to a sales fact table. The products table has 200 thousand rows and the sales table has 33 million rows. &lt;A href="https://lasdobrasilcombr-my.sharepoint.com/:u:/g/personal/rai_santos_las_app_br/EdI3a3i6NH9DsmtDUnSaNZkBkoYsR6Ktc8Kml6x-01251g?e=WChhnf" target="_self"&gt;Download a PBIX example here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, does anyone know a method to perform this calculation so that it doesn't take too long to load the visuals?&lt;/P&gt;&lt;P&gt;Below is an example of code I wrote. But it takes a long time to load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;Cumulative Pareto = 
Var vShare = DIVIDE(SUM('fSales'[Sales Amount]), CALCULATE(SUM('fSales'[Sales Amount]), ALL('dProducts')))
VAR TbShare = 
SUMMARIZE(
    ALLSELECTED('dProducts'),
    'dProducts'[Cod Prod],
    "@Share", DIVIDE(SUM('fSales'[Sales Amount]), CALCULATE(SUM('fSales'[Sales Amount]), ALL('dProducts')))
)
Return
IF(
    HASONEVALUE('dProducts'[Cód Prod]) &amp;amp;&amp;amp; [Share%] &amp;lt;&amp;gt; 0,
SUMX(FILTER(TbShare, [@Share]&amp;gt;=vShare), [@Share]),BLANK())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I need a code that doesn't take more than 10 seconds to load.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 16:14:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3921310#M152619</guid>
      <dc:creator>Rai_BI</dc:creator>
      <dc:date>2024-05-15T16:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Slow and infunctional Pareto calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3921745#M152636</link>
      <description>&lt;P&gt;Your dimension table is too big. Power BI will have performance issues when you have more than 50000 distinct values in your dimension key.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works fine when you use Product Brand, for example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 22:17:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3921745#M152636</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-15T22:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Slow and infunctional Pareto calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3921795#M152638</link>
      <description>&lt;P&gt;Yes, you are correct, but I still need to find a way to achieve this goal. There must be some technique or trick that makes this possible. There are several companies that have more than 50 thousand products, I refuse to believe that Power BI is incapable of performing this type of calculation for companies that have several products.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 23:28:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3921795#M152638</guid>
      <dc:creator>Rai_BI</dc:creator>
      <dc:date>2024-05-15T23:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Slow and infunctional Pareto calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3921804#M152639</link>
      <description>&lt;P&gt;Look at it from the business side. That large number of products can never be shown all at once (your screen has a limited number of horizontal pixels too), and a pareto over these product may just show a straight line like in the example I gave.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the story you are trying to tell? What are the business insights you are hoping to get out of this exercise?&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 23:49:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3921804#M152639</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-15T23:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Slow and infunctional Pareto calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3923891#M152686</link>
      <description>&lt;P&gt;&lt;BR /&gt;I don´t intend to use the measure in a graph like you did. I intend to use a slicer to filter products are A, B or C. I don´t intent to use a graph but i´ll use a table visual.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 11:38:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3923891#M152686</guid>
      <dc:creator>Rai_BI</dc:creator>
      <dc:date>2024-05-16T11:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Slow and infunctional Pareto calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3924117#M152690</link>
      <description>No user will ever want to scroll through 50000 rows in a table visual.</description>
      <pubDate>Thu, 16 May 2024 12:23:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3924117#M152690</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-16T12:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Slow and infunctional Pareto calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3925218#M152955</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;SPAN&gt;I need help creating a DAX measure that calculates Pareto (80:20). All the measures I have taken so far have resulted in failure, as it is taking a long time to load and sometimes it does not load, as it exceeds the available memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data model is very simple, I have a product dimension table related to a sales fact table. The products table has 200 thousand rows and the sales table has 33 million rows. &lt;A href="https://lasdobrasilcombr-my.sharepoint.com/:u:/g/personal/rai_santos_las_app_br/EdI3a3i6NH9DsmtDUnSaNZkBkoYsR6Ktc8Kml6x-01251g?e=WChhnf" target="_self"&gt;Download a PBIX example here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, does anyone know a method to perform this calculation so that it doesn't take too long to load the visuals?&lt;/P&gt;&lt;P&gt;Below is an example of code I wrote. But it takes a long time to load.&lt;/P&gt;&lt;LI-CODE lang="css"&gt;Cumulative Pareto = 
Var vShare = DIVIDE(SUM('fSales'[Sales Amount]), CALCULATE(SUM('fSales'[Sales Amount]), ALL('dProducts')))
VAR TbShare = 
SUMMARIZE(
    ALLSELECTED('dProducts'),
    'dProducts'[Cod Prod],
    "@Share", DIVIDE(SUM('fSales'[Sales Amount]), CALCULATE(SUM('fSales'[Sales Amount]), ALL('dProducts')))
)
Return
IF(
    HASONEVALUE('dProducts'[Cód Prod]) &amp;amp;&amp;amp; [Share%] &amp;lt;&amp;gt; 0,
SUMX(FILTER(TbShare, [@Share]&amp;gt;=vShare), [@Share]),BLANK())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a code that doesn't take more than 10 seconds to load.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 00:42:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3925218#M152955</guid>
      <dc:creator>Rai_BI</dc:creator>
      <dc:date>2024-05-17T00:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Slow and infunctional Pareto calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3925303#M152956</link>
      <description>&lt;P&gt;You already posted that here&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3923891#M152686" target="_blank"&gt;Re: Slow and infunctional Pareto calculation - Microsoft Fabric Community&lt;/A&gt;&amp;nbsp; - what is different this time?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 01:31:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slow-and-infunctional-Pareto-calculation/m-p/3925303#M152956</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-17T01:31:25Z</dc:date>
    </item>
  </channel>
</rss>

