<?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: Problems with apply condition to function RANKX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-apply-condition-to-function-RANKX/m-p/2026093#M45287</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320887" data-lia-user-login="Zapas1428" class="lia-mention lia-mention-user"&gt;Zapas1428&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this out:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RANKmeausre=&amp;nbsp;&lt;BR /&gt;Var currentrnk= MAX(Tabla Resumen Autobox'[Date with hour])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RANKX(FILTER(ALLSELECTED(Tabla Resumen Autobox),Tabla Resumen Autobox'[Date with hour]= currentrnk),Tabla Resumen Autobox'[Date with hour],,ASC, Dense)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark this as a solution if I answered your question. Kudos are always appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 12:52:12 GMT</pubDate>
    <dc:creator>Tanushree_Kapse</dc:creator>
    <dc:date>2021-08-19T12:52:12Z</dc:date>
    <item>
      <title>Problems with apply condition to function RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-apply-condition-to-function-RANKX/m-p/2025944#M45278</link>
      <description>&lt;P&gt;First of all, I would like to introduce myself and say that it is a pleasure to be part of the community. I started working with Power BI 7 months ago and I work in the industry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem because I would like to make a ranking from 1 to the number of records registered that day and the next day restart the ranking from 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the Rankx function but I am not able to restart it when changing the value of one of the two dates (there are two dates intentionally and they are well related).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach an image of the table layout:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula I am using now is: Ranking by day = RANKX('Tabla Resumen Autobox','Tabla Resumen Autobox'[Date with hour],,ASC).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach another image of how the table is currently and how I need it to look like. I hope you can help me because I can't get it out.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;How I have&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;How I need&lt;/P&gt;&lt;P class="lia-align-left"&gt;I hope I have explained well a greeting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 11:26:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-apply-condition-to-function-RANKX/m-p/2025944#M45278</guid>
      <dc:creator>Zapas1428</dc:creator>
      <dc:date>2021-08-19T11:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with apply condition to function RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-apply-condition-to-function-RANKX/m-p/2026093#M45287</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320887" data-lia-user-login="Zapas1428" class="lia-mention lia-mention-user"&gt;Zapas1428&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this out:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RANKmeausre=&amp;nbsp;&lt;BR /&gt;Var currentrnk= MAX(Tabla Resumen Autobox'[Date with hour])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RANKX(FILTER(ALLSELECTED(Tabla Resumen Autobox),Tabla Resumen Autobox'[Date with hour]= currentrnk),Tabla Resumen Autobox'[Date with hour],,ASC, Dense)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark this as a solution if I answered your question. Kudos are always appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:52:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problems-with-apply-condition-to-function-RANKX/m-p/2026093#M45287</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-08-19T12:52:12Z</dc:date>
    </item>
  </channel>
</rss>

