<?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 Pareto Curve in Power BI/DAX - % customers vs % sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1277344#M21666</link>
    <description>&lt;P&gt;Hello dear community members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to solve this for a while, but not luck so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to have a 'Sales Concentration Curve', that is a Pareto curve basically, but instead of having CUSTOMERS on the X-Axis, having a percentage (i.e: X% of customers give Y % of volume).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this for now:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It only works if I add the Bar values (that is sales value) which is basically Sum of Sales Value. and creating the following measure which draws the curve using the below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;Cust volume Concentration = &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;VAR total_SalesVol = CALCULATE(SUM(oos_master_customer[Sales LY]),ALLSELECTED(oos_master_customer))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;VAR current_SalesVol = SUM(oos_master_customer[Sales LY])&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;VAR summarized_Table =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;SUMMARIZE(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;ALLSELECTED(oos_master_customer),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;oos_master_customer[customer_unique_code],&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;"volume",SUM(oos_master_customer[Sales LY])&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;VAR CumulativeSum =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;FILTER(summarized_Table,[volume] &amp;gt;= current_SalesVol),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;[volume]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;DIVIDE(CumulativeSum,total_SalesVol)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;The curve is redrawn appropriatly when applying filters on the graph. So all works perfectly.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;U&gt;What I am missing:&lt;/U&gt; is to have on the X-axis, instead of the customer (11k of them), just percentage 0-100% based on their ranking of largest to smallest.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;My model has: 1 Transaction (facts) table for sales&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;linked to 1 Customer (Dim) table&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;linked to 1 Product (Dim) table (to the facts table obviously)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Thanks a lot&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;I spent too many hours trying to figur that out - your help is very much appreciated. thanks a lot&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 11:57:51 GMT</pubDate>
    <dc:creator>akhoury</dc:creator>
    <dc:date>2020-08-06T11:57:51Z</dc:date>
    <item>
      <title>Pareto Curve in Power BI/DAX - % customers vs % sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1277344#M21666</link>
      <description>&lt;P&gt;Hello dear community members,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to solve this for a while, but not luck so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to have a 'Sales Concentration Curve', that is a Pareto curve basically, but instead of having CUSTOMERS on the X-Axis, having a percentage (i.e: X% of customers give Y % of volume).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this for now:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It only works if I add the Bar values (that is sales value) which is basically Sum of Sales Value. and creating the following measure which draws the curve using the below code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;Cust volume Concentration = &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;VAR total_SalesVol = CALCULATE(SUM(oos_master_customer[Sales LY]),ALLSELECTED(oos_master_customer))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;VAR current_SalesVol = SUM(oos_master_customer[Sales LY])&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;VAR summarized_Table =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;SUMMARIZE(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;ALLSELECTED(oos_master_customer),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;oos_master_customer[customer_unique_code],&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;"volume",SUM(oos_master_customer[Sales LY])&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;VAR CumulativeSum =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;FILTER(summarized_Table,[volume] &amp;gt;= current_SalesVol),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;[volume]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="lia-align-left lia-indent-padding-left-180px"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;DIVIDE(CumulativeSum,total_SalesVol)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&amp;nbsp;The curve is redrawn appropriatly when applying filters on the graph. So all works perfectly.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;U&gt;What I am missing:&lt;/U&gt; is to have on the X-axis, instead of the customer (11k of them), just percentage 0-100% based on their ranking of largest to smallest.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;My model has: 1 Transaction (facts) table for sales&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;linked to 1 Customer (Dim) table&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;linked to 1 Product (Dim) table (to the facts table obviously)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;Thanks a lot&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;I spent too many hours trying to figur that out - your help is very much appreciated. thanks a lot&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 11:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1277344#M21666</guid>
      <dc:creator>akhoury</dc:creator>
      <dc:date>2020-08-06T11:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Curve in Power BI/DAX - % customers vs % sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1282358#M21884</link>
      <description>&lt;P&gt;testing the reply as I saw no takers yet - apologies for the spam&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 10:24:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1282358#M21884</guid>
      <dc:creator>akhoury</dc:creator>
      <dc:date>2020-08-09T10:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Curve in Power BI/DAX - % customers vs % sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1282445#M21894</link>
      <description>&lt;P&gt;Do you already have a percentile column in your customer table?&amp;nbsp; If not, I would add a calculated column using one of the PERCENTILE functions to show the percentile of each customer.&amp;nbsp; You can then write a measure that shows the running total percent for your Y axis (i.e., include current percentile and all lower/higher percentiles).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need it to be dynamic with slicers, you will need a disconnected table with the percentile values for your X axis, and calculate the %Y dynamically.&amp;nbsp; If you post a link to the pbix, more specific help can be given.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp; Kudos are appreciated too.&amp;nbsp; Please let me know if not.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 13:22:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1282445#M21894</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-08-09T13:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Curve in Power BI/DAX - % customers vs % sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1283432#M21923</link>
      <description>&lt;P&gt;First Thanks a lot for your reply, Pat.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective is to implement the second solution you proposed; I already have a version with your first proposed aproach. The problem is that its hardcoded and it's not dynamic/wouldn't filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As to the second aproach, I did read before that it will need a table (or a table within a measure possibly/if I understood well), but I don't think I have the DAX experience level required to be able to implement it. I have been trying for a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the pbix link:&amp;nbsp;&lt;A href="https://we.tl/t-R1PSSzUOmT" target="_blank" rel="noopener"&gt;https://we.tl/t-R1PSSzUOmT&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(Tried to reduce its size as much as possible, leaving just what is needed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this PBIX you will find the sample (hard coded) curve on the right, just to explain what I need have as an output, and on the left hand side, the concentration curve I already have, but listing all the customers on the x-axis; its missing what I was mentionning, that is to have them as %. 1-100%, 1% corresponding the largest customers and 100% to the smallest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Amine&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 06:31:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1283432#M21923</guid>
      <dc:creator>akhoury</dc:creator>
      <dc:date>2020-08-10T06:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Pareto Curve in Power BI/DAX - % customers vs % sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1291512#M22215</link>
      <description>&lt;P&gt;Testing to see if the thread is still accepting replies&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 19:28:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pareto-Curve-in-Power-BI-DAX-customers-vs-sales/m-p/1291512#M22215</guid>
      <dc:creator>akhoury</dc:creator>
      <dc:date>2020-08-12T19:28:01Z</dc:date>
    </item>
  </channel>
</rss>

