I have a table that follows this format:
| Index | Another header | Value |
|---|---|---|
| index1 | a | True |
| a | True | |
| a | True | |
| b | True | |
| index2 | c | True |
| index2 | c | True |
| index2 | c | True |
The list is ordered by date (least recent to most recent). For each index, I want the most recent value in 'Another header' to remain True while changing the rest to False. And if the value only occurs once, it will become False. It should look something like this:
| Index | Another header | Value |
|---|---|---|
| index1 | a | False |
| a | False | |
| a | True | |
| b | False | |
| index2 | c | False |
| c | False | |
| c | True |
Does anyone know how I can do this? All help is appreciated!