<?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: DYNAMIC INDEX WITH RANKX - SLICERS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DYNAMIC-INDEX-WITH-RANKX-SLICERS/m-p/2825315#M89809</link>
    <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451871" data-lia-user-login="pedroluccas" class="lia-mention lia-mention-user"&gt;pedroluccas&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Is there a way to rank them in a way that every sample has a different number, in ascending order, according to date and &lt;STRONG&gt;that restarts the count with my slicers selection&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;could you share a sample .pbix file that fully covers your question, including the slicers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Tang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2022 09:38:04 GMT</pubDate>
    <dc:creator>v-xiaotang</dc:creator>
    <dc:date>2022-10-07T09:38:04Z</dc:date>
    <item>
      <title>DYNAMIC INDEX WITH RANKX - SLICERS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DYNAMIC-INDEX-WITH-RANKX-SLICERS/m-p/2823863#M89708</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a data series that relates a "result" (pH, mass, etc) to "sample code" and, in order to calculate my intersect, slope and R² I need an index starting with 1&lt;/P&gt;&lt;P&gt;But when I filter my data, I need that the first sample be reenumerated to 1. Ex:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- First analysis: Sample 1 to 20 (1 = 1,&amp;nbsp; 2 = 2, 3 = 3, ..., 20 samples)&lt;/P&gt;&lt;P&gt;- Second analysis: Sample 8 to 16 (8 = 1, 9 = 2, 10 = 3, ..., 16 = 9). For this I suppose ALLSELECTED is needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need all the samples ranked by date (ascending), and, if a date repeats for a distinct sample, it's still ranked as a different number (Ex: B2AA/22 and B3AA/22) were analysed the same day, but are different samples, so B2AA/22 = 1 and B3AA/22 = 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same way I want select samples of annother product, ex: B1AA/22 - B12AA/22, and, when I change the products the index restart with 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to rank them in a way that every sample has a different number, in ascending order, according to date and that restarts the count with my slicers selection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;rank = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Plan1&lt;/SPAN&gt;&lt;SPAN&gt;[DATE]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Plan1&lt;/SPAN&gt;&lt;SPAN&gt;[DATE]&lt;/SPAN&gt;&lt;SPAN&gt;)),,&lt;/SPAN&gt;&lt;SPAN&gt;ASC&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Dense&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-------------------------------------------&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But, the rank just repeats the same number...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expalin with more details of the statistics on DAX on&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/LINEAR-REGRESSION-X-AXIS-IN-TEXT-FORMAT/m-p/2820500" target="_blank" rel="noopener"&gt;LINEAR REGRESSION - X-AXIS IN TEXT FORMAT - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 20:03:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DYNAMIC-INDEX-WITH-RANKX-SLICERS/m-p/2823863#M89708</guid>
      <dc:creator>pedroluccas</dc:creator>
      <dc:date>2022-10-06T20:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC INDEX WITH RANKX - SLICERS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DYNAMIC-INDEX-WITH-RANKX-SLICERS/m-p/2825315#M89809</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451871" data-lia-user-login="pedroluccas" class="lia-mention lia-mention-user"&gt;pedroluccas&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Is there a way to rank them in a way that every sample has a different number, in ascending order, according to date and &lt;STRONG&gt;that restarts the count with my slicers selection&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;could you share a sample .pbix file that fully covers your question, including the slicers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Tang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 09:38:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DYNAMIC-INDEX-WITH-RANKX-SLICERS/m-p/2825315#M89809</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-10-07T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC INDEX WITH RANKX - SLICERS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DYNAMIC-INDEX-WITH-RANKX-SLICERS/m-p/2825880#M89848</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296930" data-lia-user-login="v-xiaotang" class="lia-mention lia-mention-user"&gt;v-xiaotang&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://drive.google.com/file/d/1w7qID-TgUBzum14X1WRQXmZn-VYmyc4Z/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1w7qID-TgUBzum14X1WRQXmZn-VYmyc4Z/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I attached a Drive link since I am not able to upload a .pbix file (seems that new users have restrictions)&lt;/P&gt;&lt;P&gt;Thank You&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 13:18:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DYNAMIC-INDEX-WITH-RANKX-SLICERS/m-p/2825880#M89848</guid>
      <dc:creator>pedroluccas</dc:creator>
      <dc:date>2022-10-07T13:18:20Z</dc:date>
    </item>
  </channel>
</rss>

