<?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 for number of columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529603#M29993</link>
    <description>&lt;P&gt;That is also nice solution:)&lt;/P&gt;&lt;P&gt;I will keep it in mind&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;Mcg&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 22:25:17 GMT</pubDate>
    <dc:creator>MCG</dc:creator>
    <dc:date>2020-12-02T22:25:17Z</dc:date>
    <item>
      <title>RankX for number of columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529428#M29983</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a simple data set:&lt;/P&gt;&lt;P&gt;category&amp;nbsp; &amp;nbsp;brand&amp;nbsp; &amp;nbsp;value&lt;/P&gt;&lt;P&gt;x&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/P&gt;&lt;P&gt;x&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15&lt;/P&gt;&lt;P&gt;y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 20&lt;/P&gt;&lt;P&gt;y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create ONE measure that will give me ranking for category and brand but shown in two separate tables:&lt;/P&gt;&lt;P&gt;cat&amp;nbsp; &amp;nbsp;value&amp;nbsp; &amp;nbsp;rank&lt;/P&gt;&lt;P&gt;x&amp;nbsp; &amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;y&amp;nbsp; &amp;nbsp; &amp;nbsp; 45&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;brand value&amp;nbsp; &amp;nbsp;rank&lt;/P&gt;&lt;P&gt;a&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;b&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;... for the rest brands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible via one RankX measure?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Mcg&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 18:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529428#M29983</guid>
      <dc:creator>MCG</dc:creator>
      <dc:date>2020-12-02T18:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: RankX for number of columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529495#M29986</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="241909" data-lia-user-login="MCG" class="lia-mention lia-mention-user"&gt;MCG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your first visual:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank measure = 
RANKX(ALL(Table1[category]), CALCULATE(SUM(Table1[value])))&lt;/LI-CODE&gt;
&lt;P&gt;For the second:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank measure 2 = 
RANKX(ALL(Table1[brand]), CALCULATE(SUM(Table1[value])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 19:42:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529495#M29986</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-12-02T19:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: RankX for number of columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529520#M29988</link>
      <description>&lt;P&gt;Thanks:)&lt;/P&gt;&lt;P&gt;That is what I also calculated...&lt;/P&gt;&lt;P&gt;What i wanted to achieve is to get same result in one measure...&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;Mcg&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 20:11:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529520#M29988</guid>
      <dc:creator>MCG</dc:creator>
      <dc:date>2020-12-02T20:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: RankX for number of columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529526#M29989</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="241909" data-lia-user-login="MCG" class="lia-mention lia-mention-user"&gt;MCG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, hadn't read properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Rank measure V2 =
SWITCH (
    TRUE (),
    ISFILTERED ( Table1[category] ), RANKX ( ALL ( Table1[category] ), CALCULATE ( SUM ( Table1[value] ) ) ),
    ISFILTERED ( Table1[brand] ), RANKX ( ALL ( Table1[brand] ), CALCULATE ( SUM ( Table1[value] ) ) )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 20:17:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529526#M29989</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-12-02T20:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: RankX for number of columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529557#M29990</link>
      <description>&lt;P&gt;exactly what i was looking for:)&lt;/P&gt;&lt;P&gt;perfect!&lt;/P&gt;&lt;P&gt;greta thanks&lt;/P&gt;&lt;P&gt;mcg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 21:07:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529557#M29990</guid>
      <dc:creator>MCG</dc:creator>
      <dc:date>2020-12-02T21:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: RankX for number of columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529575#M29991</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="241909" data-lia-user-login="MCG" class="lia-mention lia-mention-user"&gt;MCG&lt;/a&gt;&amp;nbsp;, you might want to try to further integrate rankings this way,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rank =
SWITCH (
    TRUE (),
    ISINSCOPE ( Table1[brand] ),
        RANKX (
            ALL ( Table1[brand] ),
            CALCULATE ( SUM ( Table1[value] ), ALL ( Table1[Category] ) )
        ),
    ISINSCOPE ( Table1[category] ), RANKX ( ALL ( Table1[category] ), CALCULATE ( SUM ( Table1[value] ) ) )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 21:41:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529575#M29991</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-12-02T21:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: RankX for number of columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529603#M29993</link>
      <description>&lt;P&gt;That is also nice solution:)&lt;/P&gt;&lt;P&gt;I will keep it in mind&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;Mcg&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 22:25:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RankX-for-number-of-columns/m-p/1529603#M29993</guid>
      <dc:creator>MCG</dc:creator>
      <dc:date>2020-12-02T22:25:17Z</dc:date>
    </item>
  </channel>
</rss>

