Forum Discussion

skie's avatar
skie
New Member
3 years ago

show most recent data for multiple rows

Hi

I have searched for a solution to my issue without luck, which should have a simple solution. I would like to create a table to show most recent data for multiple rows. An example of my data set:

ID

distance

guide

date 

week number

1

50

60

9/01/2023

2

1

60

65

11/01/2023

2

1

70

63

13/01/2023

2

2

52

55

9/01/2023

2

2

53

56

11/01/2023

2

2

54

57

13/01/2023

2

3

55

75

9/01/2023

2

3

65

65

11/01/2023

2

3

75

55

13/01/2023

2

 

I can filter my data by week number to the above, but I would like to display the most recent entry for each ID. ‘Distance’ increases throughout the week, however ‘guide’ does not, hence filtering by max doesn’t work.

 

the outcome table I would like to create is:

ID

distance

guide

1

70

63

2

54

57

3

75

55

 

Thanks in advance for your solution/s.

No RepliesBe the first to reply