barnettjacob
New Member
- Joined
- Nov 7, 2008
- Messages
- 42
Hi,
I trying to write a measure to help me work out 'Like for Like' customer traffic in our stores. To do this I need to adjust this year's number so that I am only adding the traffic after the counter has been installed for a year.
To help me do this I have an additional column on the Store table that gives the date of the first traffic count - therefore I am aiming to filter my calendar table for dates that are 364 days greater than that number for each store.
I had hoped the measure below would work but it doesn't as the total seems to ignore the individual stores and basically uses the overall 'First Footfall' as opposed to iterating by store.
Any assistance would be appreciated.
Jacob
I trying to write a measure to help me work out 'Like for Like' customer traffic in our stores. To do this I need to adjust this year's number so that I am only adding the traffic after the counter has been installed for a year.
To help me do this I have an additional column on the Store table that gives the date of the first traffic count - therefore I am aiming to filter my calendar table for dates that are 364 days greater than that number for each store.
I had hoped the measure below would work but it doesn't as the total seems to ignore the individual stores and basically uses the overall 'First Footfall' as opposed to iterating by store.
Code:
=CALCULATE(SUMX(Footfall,Footfall[traffic]),FILTER('01 - Calendar','01 - Calendar'[Date]>=min('03 - Store'[First Footfall])+364))
Any assistance would be appreciated.
Jacob