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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
nathan_kul
New Member

Ranking a sub group in a column from last to first based off time.

Hi, 

 

I have the code 

 

 

Ranking = RANKX(FILTER(data_set,data_set[customer_ID]=EARLIER(data_set[customer]ID)), data_set[time_stamp],, ASC)

 

 

This code ranks the individual customers entries from first to last based off the time stamp. How could I get the output to be the last entry based off time stamp to being ranked first and the first entry based off the time stamp to being ranked last?

 

Thanks in advance!

1 ACCEPTED SOLUTION

@nathan_kul 

 

Use DESC instead of ASC in your DAX as @lbendlin mentioned above.

Irwan_0-1724541483011.png

 

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

DESC ?

Yes, descending. How would I input that?

@nathan_kul 

 

Use DESC instead of ASC in your DAX as @lbendlin mentioned above.

Irwan_0-1724541483011.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.