<?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: Cumulative Points based on Rank of Sales Amount in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Points-based-on-Rank-of-Sales-Amount/m-p/881636#M7564</link>
    <description>&lt;P&gt;Small bump to see if anybody out there may have a suggestion &lt;span class="lia-unicode-emoji" title=":smirking_face:"&gt;😏&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 15:53:42 GMT</pubDate>
    <dc:creator>Chthonian</dc:creator>
    <dc:date>2019-12-20T15:53:42Z</dc:date>
    <item>
      <title>Cumulative Points based on Rank of Sales Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Points-based-on-Rank-of-Sales-Amount/m-p/880580#M7510</link>
      <description>&lt;P&gt;Hello folks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have what i hope is a nice simple question, that I am probably over thinking and getting confused with. Hoping somebody out there can help.......actually I am sure somebody here can help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario/Request:&lt;/STRONG&gt; Create a Sales Leaderboard for our sales people, the based on Rank (1-10) assign a points value to each ranked salesperson. The have a running cumulative total of the points won each month. And at the end of the year the person with the most points wins a free holiday&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":desert_island:"&gt;🏝&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Setup:&lt;/STRONG&gt; Nice &amp;amp; Simple, Date Table connected to Sales Date("Orderlines Date"), Sales Table connected to Sales Person Table("Agent Contacts"). With a disconnected lookup table with Rank &amp;amp; Points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measure 1:&amp;nbsp;&lt;/STRONG&gt;Top 10 = CALCULATE( [Total Sales], TOPN(10, 'Agent Contacts', [Total Sales], DESC))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measure 2:&lt;/STRONG&gt;&amp;nbsp;Ranking = RANKX(ALL('Agent Contacts'), [Total Sales], ,DESC)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measure 3:&amp;nbsp;&lt;/STRONG&gt;Points = CALCULATE(VALUE(LOOKUPVALUE('Ranking Values'[Points],'Ranking Values'[Rank],[Ranking])))&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;This works a treat when using a slicer to work out each months sales leaderboard as per the below, but not for the life of me can I get my head around building the Dax to run a cumulative total on points.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End result I am looking to achieve would be a table or visual calulating the total points won each month by a sales person and obviously ranking them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Points&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Jan&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;Feb&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;Mar&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been hunting for a solution and gotten bogged down and confused with summarize and table variables and group by (all a bit above my current proficiency!&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;) so I thought I would seek help from the people in the know!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance guys for any guidance or tips!&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 20:30:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Points-based-on-Rank-of-Sales-Amount/m-p/880580#M7510</guid>
      <dc:creator>Chthonian</dc:creator>
      <dc:date>2019-12-19T20:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Points based on Rank of Sales Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Points-based-on-Rank-of-Sales-Amount/m-p/881636#M7564</link>
      <description>&lt;P&gt;Small bump to see if anybody out there may have a suggestion &lt;span class="lia-unicode-emoji" title=":smirking_face:"&gt;😏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:53:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Points-based-on-Rank-of-Sales-Amount/m-p/881636#M7564</guid>
      <dc:creator>Chthonian</dc:creator>
      <dc:date>2019-12-20T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Points based on Rank of Sales Amount</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Points-based-on-Rank-of-Sales-Amount/m-p/897251#M8124</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to close this down saying that I found a way to calculate this using SUMMARIZE to create a table with each month as a dimension that then allowed me to SUM &amp;amp; RANK and TOPN the Results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2020 21:30:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Points-based-on-Rank-of-Sales-Amount/m-p/897251#M8124</guid>
      <dc:creator>Chthonian</dc:creator>
      <dc:date>2020-01-12T21:30:21Z</dc:date>
    </item>
  </channel>
</rss>

