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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors