Would require help to create a flag column to identify Past, Present and Future based on the Date in Power Query.
The data would come across something similar to this:
Type | Date | Today |
Level 1 | 10/07/2024 | 10/10/2024 |
Level 1 | 11/07/2024 | 10/10/2024 |
Level 1 | 26/09/2024 | 10/10/2024 |
Level 1 | 29/09/2024 | 10/10/2024 |
Level 1 | 30/09/2024 | 10/10/2024 |
Level 1 | 1/10/2024 | 10/10/2024 |
Level 1 | 2/10/2024 | 10/10/2024 |
Level 1 | 7/10/2024 | 10/10/2024 |
Level 1 | 8/10/2024 | 10/10/2024 |
Level 1 | 9/10/2024 | 10/10/2024 |
Level 1 | 10/10/2024 | 10/10/2024 |
Level 1 | 11/10/2024 | 10/10/2024 |
Level 1 | 15/10/2024 | 10/10/2024 |
Level 1 | 16/10/2024 | 10/10/2024 |
Level 1 | 4/12/2024 | 10/10/2024 |
Level 1 | 5/12/2024 | 10/10/2024 |
Level 2 | 30/09/2024 | 10/10/2024 |
Level 2 | 1/10/2024 | 10/10/2024 |
Level 2 | 9/10/2024 | 10/10/2024 |
Level 2 | 10/10/2024 | 10/10/2024 |
Level 2 | 11/10/2024 | 10/10/2024 |
Level 2 | 12/10/2024 | 10/10/2024 |
Level 2 | 31/12/2024 | 10/10/2024 |
Level 2 | 1/01/2025 | 10/10/2024 |
Create additonal flag column in power query
Past= Does not fit in latest cycle of continous day in between todays dates and are previous dates
Present= Fits in latest cycle of continous day in between todays dates
Future= Does not fit in latest cycle of continous day in between todays dates and are future dates
Type | Date | Today | Type Flag |
Level 1 | 10/07/2024 | 10/10/2024 | Past |
Level 1 | 11/07/2024 | 10/10/2024 | Past |
Level 1 | 26/09/2024 | 10/10/2024 | Past |
Level 1 | 29/09/2024 | 10/10/2024 | Past |
Level 1 | 30/09/2024 | 10/10/2024 | Past |
Level 1 | 1/10/2024 | 10/10/2024 | Past |
Level 1 | 2/10/2024 | 10/10/2024 | Past |
Level 1 | 7/10/2024 | 10/10/2024 | Present |
Level 1 | 8/10/2024 | 10/10/2024 | Present |
Level 1 | 9/10/2024 | 10/10/2024 | Present |
Level 1 | 10/10/2024 | 10/10/2024 | Present |
Level 1 | 11/10/2024 | 10/10/2024 | Present |
Level 1 | 15/10/2024 | 10/10/2024 | Future |
Level 1 | 16/10/2024 | 10/10/2024 | Future |
Level 1 | 4/12/2024 | 10/10/2024 | Future |
Level 1 | 5/12/2024 | 10/10/2024 | Future |
Level 2 | 30/09/2024 | 10/10/2024 | Past |
Level 2 | 1/10/2024 | 10/10/2024 | Past |
Level 2 | 9/10/2024 | 10/10/2024 | Present |
Level 2 | 10/10/2024 | 10/10/2024 | Present |
Level 2 | 11/10/2024 | 10/10/2024 | Present |
Level 2 | 12/10/2024 | 10/10/2024 | Present |
Level 2 | 31/12/2024 | 10/10/2024 | Future |
Level 2 | 1/01/2025 | 10/10/2024 | Future |