Hello Ghada,
- You have to use your Local Variable as a Filter in your Aggregate.
- After completing the 5 steps (i to v) add one day to the Local Variable
- Check if the Local Variable is still lower than `CurrDate()+7` (within the next 7 days):
True- complete the 5 steps, then add one day to the Local Variable;
False- move on to step d)
Regarding the chart itself maybe these examples in documentation will help you.
Kind regards