Reputation: 29
I am new to Spotfire and would appreciate any help on this. Here is a sample data i am working on...
Well_ID Date Oil_Rate
1 8/30/17 614.62
1 8/31/17 614.62
1 9/01/17 873.07
1 9/02/17 873.07
And I need Something like below
Well_ID Date Oil_Rate Rank
1 8/30/17 614.62 1
1 8/31/17 614.62 2
1 9/01/17 873.07 1
1 9/02/17 873.07 2
Can anyone help me with this? Thanks!
Upvotes: 1
Views: 1764
Reputation: 1827
This simple Rank function should suffice:
Rank([Date],Month([Date]),[Well_ID])
Ranks the Dates by their month and by Well_ID. other columns can be added as well to Rank over.
Upvotes: 3