<?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: RANKX based on row total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751339#M36496</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/291628" target="_blank" rel="noopener"&gt;@Jihwan_Kim&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sounds kind of stupid, but how can I attach a PowerBI doc?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 08:52:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-29T08:52:43Z</dc:date>
    <item>
      <title>RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1748109#M36362</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am curious if you can help me with the following, cause i got stuck:&lt;/P&gt;&lt;P&gt;I want to show the top 60 customers on three different pages based on sales spread over the three months from the quarter.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Page 1 = Top 1 - 20 customers;&lt;BR /&gt;Page 2 = Top 21 - 40 customers;&lt;BR /&gt;Page 3 = Top 41 - 60 customers.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I used the following formulas for ranking the customers:&lt;BR /&gt;"Ranking customers = RANKX(ALL(Customers_Odata), [Revenue invoiced], , DESC)"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;For the calculation on page 1, I used the following formula:&lt;/STRONG&gt;&lt;BR /&gt;"Ranking customers top 20 = IF([Ranking project task] &amp;lt;=20, [Revenue invoiced], BLANK())"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For the calculation on page 2, I used the following formula:&lt;/STRONG&gt;&lt;BR /&gt;"Ranking customers top 21-40 = IF(AND([Ranking project task] &amp;gt;20, [Ranking project task] &amp;lt;= 40), [Revenue invoiced], BLANK())"&lt;/P&gt;&lt;P&gt;F&lt;STRONG&gt;or the calculation on page 3, I used the following formula:&lt;/STRONG&gt;&lt;BR /&gt;"Ranking customers top 41-60 = IF(AND([Ranking project task] &amp;gt;40, [Ranking project task] &amp;lt;= 60), [Revenue invoiced], BLANK())"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, not 20 but 22 customers are displayed per page because the calculation is performed on each month and not on the Total.&lt;/P&gt;&lt;P&gt;It looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility to make just a calculation which is only based on the total column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ramon&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 12:37:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1748109#M36362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-26T12:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1749497#M36427</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please correct me if I wrongly understand your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inside the ranking measure, instead of using&amp;nbsp;&lt;SPAN&gt;[Revenue invoiced], try to use something like,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;FONT color="#0000FF"&gt; &amp;nbsp;calculate ( sum ([Revenue invoiced]), allselected(datetable))&lt;/FONT&gt; -&amp;gt; if you have year slicer&amp;nbsp; separately,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This helps to rank based on the one year total amount.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But you will show on the table visual -&amp;gt; [Revenue invoiced].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or, if it is OK with you, please share your sample pbix file, then I can look into it to come up with more accurate measure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”times" color="”#000000”"&gt;&lt;EM&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”times" color="”#000000”"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 16:14:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1749497#M36427</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-03-27T16:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751303#M36494</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. However, I can't get it to work.&lt;BR /&gt;Sure I can attach the file for you. Super thoughtful of you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;Ramon&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 08:44:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751303#M36494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T08:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751339#M36496</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/291628" target="_blank" rel="noopener"&gt;@Jihwan_Kim&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sounds kind of stupid, but how can I attach a PowerBI doc?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 08:52:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751339#M36496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751490#M36499</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you can share the link.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 09:42:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751490#M36499</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-03-29T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751515#M36501</link>
      <description>&lt;P&gt;Is this what you mean?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 10:01:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751515#M36501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751529#M36502</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the confusion.&lt;/P&gt;&lt;P&gt;What I meant was,&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Save your pbix file in the google share drive( or One drive).&lt;/P&gt;&lt;P&gt;- and share the link of the file with me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 09:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751529#M36502</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-03-29T09:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751643#M36506</link>
      <description>&lt;P&gt;I guess this is what you are looking for..&amp;nbsp;&lt;BR /&gt;&lt;A href="https://1drv.ms/u/s!An16tA2yF-jjhSFXxL3mT7nVClrm?e=RFoYyz" target="_blank"&gt;https://1drv.ms/u/s!An16tA2yF-jjhSFXxL3mT7nVClrm?e=RFoYyz&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 10:45:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751643#M36506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T10:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751739#M36509</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please kindly have a look at the link down below.&lt;/P&gt;&lt;P&gt;I created two measures and replaced one of them with your measure in the matrix visualization.&lt;/P&gt;&lt;P&gt;Each measure's subject includes my name, Jihwan, so you can easily find those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The top 20 is based on the three-month-total.&lt;/P&gt;&lt;P&gt;Please check and please let me know if you need more.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="link" href="https://www.dropbox.com/s/zph4xk4hdn4q4fn/Voorbeeld%20RankX.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/zph4xk4hdn4q4fn/Voorbeeld%20RankX.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”times" color="”#000000”"&gt;&lt;EM&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”times" color="”#000000”"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 11:29:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751739#M36509</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-03-29T11:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751805#M36512</link>
      <description>&lt;P&gt;Thanks for your help and patience. This is exactly what I was looking for!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ramon&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 11:54:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1751805#M36512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T11:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1752154#M36519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there also a opportunity to show only the subtotals of the 20 customers instead of all customers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 14:38:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1752154#M36519</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-29T14:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX based on row total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1752265#M36525</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try to replace the measure with the below one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;&lt;STRONG&gt;Ranking customers top 20 Jihwan V2&lt;/STRONG&gt; =&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;VAR top20table =&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;SUMX (&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;VALUES ( Customers[Customer Name] ),&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;IF ( [Ranking customers Jihwan] &amp;lt;= 20, [Revenue invoiced], BLANK () )&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;HASONEVALUE ( Customers[Customer Name] ),&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;IF ( [Ranking customers Jihwan] &amp;lt;= 20, [Revenue invoiced], BLANK () ),&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;top20table&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 15:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-based-on-row-total/m-p/1752265#M36525</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-03-29T15:35:09Z</dc:date>
    </item>
  </channel>
</rss>

