Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Another Rank by Date question

Hello,

Thanks to everyone who has posted 'rank by date' solutions. I'm afraid I've been unable to answer my own query by browsing the contributions of existing posts. 

 

I have a table with multiple projects, which each have multiple authorisation dates (when the budget was expanded). I would like to isolate the second most recent authorisation date for each project. I believe this could be possible if I

1. ranked each project by authorisation date, and then

2. isolate which 'authorisation #' is the second most recent authorisation date. (the authorisation #s do not always go in date order)

 

My problem in #1 is similar to this post, however, the below code gives me an error message ('A single value for column 'Authorisation Date' cannot be determined'). 

 

 

 

 

Rank = 
RANKX(
    FILTER('Table', 'Table'[Project] = 'Table'[Project]
    ),
    'Table'[Authorisation Date], ,
    ASC
)

 

 

 

 

A sample table is below, with a new column in bold added for what I think I should first do (step #1) and red for the output of step 2.

 

ProjectAuthorisation #Authorisation DateRank
A115/01/20204
A215/03/20203
A320/09/20201
A419/06/20202
B130/01/20202
B218/04/20201
C104/09/20202
C220/05/20203
C311/10/20201

 

Thanks in advance for your help! 

 

2 Replies