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
Anonymous
Not applicable

Rank by category and by date

Hello everyone


How can I make a column calculated by category and by date?

 

DateCategoryOrder
2020-08-01A1
2020-08-03A3
2020-08-03A3
2020-08-02A2
2020-08-04A4
2020-08-25B4
2020-08-03B1
2020-08-10B2
2020-08-10B2
2020-08-24B3
2020-08-21C4
2020-08-08C2
2020-08-02C1
2020-08-14C3

 

I would like to create a column to classify and sort each category by date.It's possible?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

Check if you need a new column like this

Rank = RANKX(FILTER((RankTable), RankTable[Category]=EARLIER(RankTable[Category])),[Date],,asc,Dense)

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,

Check if you need a new column like this

Rank = RANKX(FILTER((RankTable), RankTable[Category]=EARLIER(RankTable[Category])),[Date],,asc,Dense)

 

VijayP
Super User
Super User

@Anonymous

Is this the outcome do you require. Please let me know!

 

2020-09-18_194808.png




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


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.