cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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

Accepted Solutions
Highlighted
Super User IV
Super User IV

@XTF_2020 ,

Check if you need a new column like this

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

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Highlighted
Solution Sage
Solution Sage

@XTF_2020

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

 

2020-09-18_194808.png

Highlighted
Super User IV
Super User IV

@XTF_2020 ,

Check if you need a new column like this

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

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors