<?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 identify rank number for topN% of a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/identify-rank-number-for-topN-of-a-measure/m-p/708522#M978</link>
    <description>&lt;P&gt;I am testing pareto principle and calculating the top N% of revenue and the underlying responsible customers.&lt;BR /&gt;Customer are being ranked by amount of their rev value:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revenue Rank =&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANKX(ALL(RevData[enduser_cust_name]); [Total Revenue FY 18]; ;DESC);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLSELECTED(RevData[Portfolio])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Now I want to compare the numbers of all (unique) customers with the number of customers that make up N% of revenue, so I get the customers that are making up the N% of revenue:&lt;BR /&gt;( N% can be selected by What-If slicer&amp;nbsp;'Revenue %'[Revenue % Value] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Top R% Customers = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISBLANK([Total Revenue FY 18]) ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;BLANK();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(RANKX(ALL(PRevData); [Total Revenue FY 18]; ;DESC) &amp;lt; (CALCULATE( [Unique Revenue&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Customers];ALL(RevData) ) * ('Revenue %'[Revenue % Value]/100) );&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Total Revenue FY 18];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BLANK() &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;its all working ok, [Top R% customer] column is showing blanks, once selected N% revenue is reached.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However I am not able to get to identify the rank, that corresponds to [Top R% customer] becoming blank,&amp;nbsp;which is the number of customers responsible for N% of revenue.&lt;BR /&gt;Searching the forum I see posts that relate to maxx(column), however this is a measure + its only a subset of the underlying table, so countrows would not work either.&lt;BR /&gt;Any idea appreciated.&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 06 Jun 2019 10:55:05 GMT</pubDate>
    <dc:creator>stsau</dc:creator>
    <dc:date>2019-06-06T10:55:05Z</dc:date>
    <item>
      <title>identify rank number for topN% of a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/identify-rank-number-for-topN-of-a-measure/m-p/708522#M978</link>
      <description>&lt;P&gt;I am testing pareto principle and calculating the top N% of revenue and the underlying responsible customers.&lt;BR /&gt;Customer are being ranked by amount of their rev value:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revenue Rank =&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANKX(ALL(RevData[enduser_cust_name]); [Total Revenue FY 18]; ;DESC);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALLSELECTED(RevData[Portfolio])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Now I want to compare the numbers of all (unique) customers with the number of customers that make up N% of revenue, so I get the customers that are making up the N% of revenue:&lt;BR /&gt;( N% can be selected by What-If slicer&amp;nbsp;'Revenue %'[Revenue % Value] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Top R% Customers = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISBLANK([Total Revenue FY 18]) ;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;BLANK();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IF(RANKX(ALL(PRevData); [Total Revenue FY 18]; ;DESC) &amp;lt; (CALCULATE( [Unique Revenue&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Customers];ALL(RevData) ) * ('Revenue %'[Revenue % Value]/100) );&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Total Revenue FY 18];&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BLANK() &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;BR /&gt;its all working ok, [Top R% customer] column is showing blanks, once selected N% revenue is reached.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However I am not able to get to identify the rank, that corresponds to [Top R% customer] becoming blank,&amp;nbsp;which is the number of customers responsible for N% of revenue.&lt;BR /&gt;Searching the forum I see posts that relate to maxx(column), however this is a measure + its only a subset of the underlying table, so countrows would not work either.&lt;BR /&gt;Any idea appreciated.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2019 10:55:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/identify-rank-number-for-topN-of-a-measure/m-p/708522#M978</guid>
      <dc:creator>stsau</dc:creator>
      <dc:date>2019-06-06T10:55:05Z</dc:date>
    </item>
  </channel>
</rss>

