I have used the following script to return each weekly average for a measure:
However, I am struggling trying to return only the last 4 weekly averages.
I have tried using the range operator and LAG(4) : NULL but I have had no luck. I need to create a named set or calculated member which defines the last 4 week range and then use in my script.
- Edited by DarrenOD Friday, January 30, 2015 3:12 PM