<?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: Ranking based on date/time and 2 filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-based-on-date-time-and-2-filters/m-p/3078747#M107166</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , depending on what you include in rank &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a new column=&lt;/P&gt;
&lt;P&gt;rankx(filter(Table, [Site/ point] = earlier([Site/ point]) &amp;amp;&amp;amp; [from_sap_code] =earlier([from_sap_code]) ), [Plan start],,asc,dense)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Rank Refer these links&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 03:18:08 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-02-14T03:18:08Z</dc:date>
    <item>
      <title>Ranking based on date/time and 2 filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-based-on-date-time-and-2-filters/m-p/3078148#M107115</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking to create a ranking measure based on the earliest date/time to the latest date/time.&lt;/P&gt;&lt;P&gt;That is simple enough but need the rank to change / reset when both the Site/Plant and Sales Date change...&amp;nbsp; So in effect will get the ranking by day by site/plant... The idea is I have another table with the Site/Plant &amp;amp; SAP CODE and the ranking order to compare the actual result to... Example if the result is 1,3,2,5,4&amp;nbsp; &amp;nbsp;then it will show out of sequence or the like....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempts so far have been very limited....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in anticipation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample data below...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 16:56:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-based-on-date-time-and-2-filters/m-p/3078148#M107115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-13T16:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking based on date/time and 2 filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-based-on-date-time-and-2-filters/m-p/3078747#M107166</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , depending on what you include in rank &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a new column=&lt;/P&gt;
&lt;P&gt;rankx(filter(Table, [Site/ point] = earlier([Site/ point]) &amp;amp;&amp;amp; [from_sap_code] =earlier([from_sap_code]) ), [Plan start],,asc,dense)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Rank Refer these links&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 03:18:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-based-on-date-time-and-2-filters/m-p/3078747#M107166</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-02-14T03:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking based on date/time and 2 filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-based-on-date-time-and-2-filters/m-p/3083010#M107558</link>
      <description>&lt;P&gt;Sorry for not getting back sooner. The way the data is setup I am unable to create the collumn in the dataset as it is direct query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I may have got you all confused as the data is not all in a sequence either (Screenshot was a poor example) as this was already filtered and sorted&amp;nbsp; to some extent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So really looking for a measure that would Rank Items from 1 to xxx based on the Plan Start Date&amp;amp; Time going from Earlist to Latest where Sales Date, Site Plant are the same....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 09:14:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-based-on-date-time-and-2-filters/m-p/3083010#M107558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-16T09:14:26Z</dc:date>
    </item>
  </channel>
</rss>

