cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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

Super User I
Super User I

@XTF_2020

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!

Proud to be a Super User!




Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors