╔═══════╦═════╦═══════╦════════╦═══════╦════════╗
║ Month ║ Day ║ City1 ║ ║ City2 ║ ║
╠═══════╬═════╬═══════╬════════╬═══════╬════════╣
║ ║ ║ Abs. ║ Relat. ║ Abs. ║ Relat. ║
║ Jan ║ 1 ║ X ║ 10% ║ Z ║ -3% ║
║ ║ 2 ║ X ║ -7% ║ Z ║ 5% ║
║ ║ ... ║ ║ ║ ║ ║
║ ║ 31 ║ ║ ║ ║ ║
║ Feb ║ 1 ║ ... ║ ... ║ ... ║ ... ║
║ ║ 2 ║ ║ ║ ║ ║
║ ║ ... ║ ║ ║ ║ ║
║ ║ 31 ║ ║ ║ ║ ║
╚═══════╩═════╩═══════╩════════╩═══════╩════════╝
Abs: Absolute; Relat.: relative
I'm new to power pivot.
I need to create a table like this, where Relative column is based on the Average of the last 4 weeks (for the same weekday).
example: January 1st was a Friday, so:
- Relative column will compute the average for the last 4 fridays (4, 11,18, 25 December)
- Then compare with the absolute value (expressing in %)
How can I compute this Relative column?