Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jbakerstull
Regular Visitor

Rank [Start Date] in Descending order

I've learned how to create a rank [Start Date] grouped by [Clients Personal ID] in Ascending order from table Client  

 

Formula 

ClientFirstEntry = RANKX(FILTER(Client, Client[Clients Personal ID]=EARLIER(Client[Clients Personal ID])),Client[Start_Date],,ASC ,Skip)
 
Resoule 

Example

Clients Personal ID        Start Date      ClientFirstEntry

3487                                 9/30/22                 1

3487                                 11/1/22                 2

 
Is it possible to possible to rank [Start Date] in Descending order? 
 
Example

Clients Personal ID        Start Date      ClientLatestEntry

3487                                 9/30/22                 2

3487                                 11/1/22                 1

 
I'm not have much success googling for such an example. 
 
Thanks
2 REPLIES 2
Kishore_KVN
Super User
Super User

Have you tried providing 'DESC' in the place of ''ASC". If so what's the output you got? If not try it that should help to solve your problem. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Hi Kishore, 

 

Replacing "ASC" with "DESC" only switched the rows but not that vaules. Please see below. 

 

Clients Personal IDStart_DateClientFirstEntryClientlatestEntry
3487Tuesday, September 20, 202212
3487Tuesday, November 1, 202221

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors