I have this table:
| ID | MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY | SUNDAY |
| 5001 | 200 | 20 | 50 | 0 | 0 | 60 | 90 |
5002 | 300 | 40 | 50 | 20 | 25 | 65 | 10 |
| 5003 | 690 | 55 | 70 | 80 | 10 | 10 | 60 |
And I want to achieve this:
| ID | Revenue | Period |
| 5001 | 420 | 08.14-06-2020 |
| 5002 | 510 | 08.14-06-2020 |
I only have the weekdays, but the values on the weekdays are always this weeks data.
So I need something that get's the current week and finds what's the date for Monday and Sunday for this week
For example :
Monday == 08
Sunday == 14
So that last column would have 08.14-06-2020
Does anyone have any ideas on this?