<?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 RANKX sum of articles sold by seller ID (group) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2617915#M76141</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I feel stupid asking this, because it must be pretty easy to do.&lt;BR /&gt;I've checked multiple other similar cases I could find here and on google. Normally these help solve my issues, but somehow I am not able to get behind it myself...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to Rank the products sold by MA ID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table Name: '&lt;SPAN&gt;SumArtikelMitarbeiter' (created from other tables with SUMMARIZE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it ranks the sold articles (value in column: [SumVerkauft]) for every [MA ID] like it is in the screenshot.&lt;/P&gt;&lt;P&gt;For every MA ID the ranking starts from 1 to X, so I know which article was most sold and least sold by seller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried multiple suggestions, like:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SumArtikelMitarbeiter[MA ID]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[SumVerkauft]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I also tried with a SUM&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SumArtikelMitarbeiter[&lt;/SPAN&gt;&lt;SPAN&gt;SumVerkauft]) measure instead of the [SumVerkauft] row&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;or with ALLEXCEPT&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but it's only showing 1s in every row.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Do you guys have a tip for me to have DAX rank the&amp;nbsp;[SumVerkauft] grouped by [MA ID]?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;I can also share the report, it's just to play around in and replicate "problems".&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;THANK YOU!&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 04 Jul 2022 15:30:37 GMT</pubDate>
    <dc:creator>smnfx</dc:creator>
    <dc:date>2022-07-04T15:30:37Z</dc:date>
    <item>
      <title>RANKX sum of articles sold by seller ID (group)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2617915#M76141</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I feel stupid asking this, because it must be pretty easy to do.&lt;BR /&gt;I've checked multiple other similar cases I could find here and on google. Normally these help solve my issues, but somehow I am not able to get behind it myself...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to Rank the products sold by MA ID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table Name: '&lt;SPAN&gt;SumArtikelMitarbeiter' (created from other tables with SUMMARIZE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it ranks the sold articles (value in column: [SumVerkauft]) for every [MA ID] like it is in the screenshot.&lt;/P&gt;&lt;P&gt;For every MA ID the ranking starts from 1 to X, so I know which article was most sold and least sold by seller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried multiple suggestions, like:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SumArtikelMitarbeiter[MA ID]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[SumVerkauft]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I also tried with a SUM&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SumArtikelMitarbeiter[&lt;/SPAN&gt;&lt;SPAN&gt;SumVerkauft]) measure instead of the [SumVerkauft] row&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;or with ALLEXCEPT&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but it's only showing 1s in every row.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Do you guys have a tip for me to have DAX rank the&amp;nbsp;[SumVerkauft] grouped by [MA ID]?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;I can also share the report, it's just to play around in and replicate "problems".&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;THANK YOU!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 04 Jul 2022 15:30:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2617915#M76141</guid>
      <dc:creator>smnfx</dc:creator>
      <dc:date>2022-07-04T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX sum of articles sold by seller ID (group)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2618046#M76149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly but could you please try the below?&lt;/P&gt;
&lt;P&gt;It is for creating a new column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
RANKX (
    FILTER (
        SumArtikelMitarbeiter,
        SumArtikelMitarbeiter[MA ID] = EARLIER ( SumArtikelMitarbeiter[MA ID] )
    ),
    CALCULATE ( SUM ( SumArtikelMitarbeiter[SumVerkauft] ) )
)

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 17:10:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2618046#M76149</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-04T17:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX sum of articles sold by seller ID (group)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2619504#M76243</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&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;Thank you for taking the time to have a look at my problem :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, if I paste your code into a new column, it says it detected a circular dependancy:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can also try to describe my situation differently if it is unclear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 10:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2619504#M76243</guid>
      <dc:creator>smnfx</dc:creator>
      <dc:date>2022-07-05T10:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX sum of articles sold by seller ID (group)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2619620#M76255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;Please try the below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
RANKX (
    FILTER (
        SumArtikelMitarbeiter,
        SumArtikelMitarbeiter[MA ID] = EARLIER ( SumArtikelMitarbeiter[MA ID] )
    ),
     SumArtikelMitarbeiter[SumVerkauft]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Jul 2022 11:03:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2619620#M76255</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-05T11:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX sum of articles sold by seller ID (group)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2624109#M76572</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408613" data-lia-user-login="smnfx" class="lia-mention lia-mention-user"&gt;smnfx&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sort = rankx( summarize(filter(allselected('SumArtikelMitarbeiter'),[ma id]=selectedvalue('SumArtikelMitarbeiter'[ma id])),[ma id],[sumverkauft]),calculate(sum('SumArtikelMitarbeiter'[sumverkauft])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Community Support Team &lt;STRONG&gt;Selina&lt;/STRONG&gt;&lt;STRONG&gt; zhu&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 06:57:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-sum-of-articles-sold-by-seller-ID-group/m-p/2624109#M76572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-07T06:57:30Z</dc:date>
    </item>
  </channel>
</rss>

