Sorry, this has probably been hashed out a million times, but I just can't get it to work.
I have two tables Raw Data and Zip Data. Relevant columns are
Raw Data: Location ID, Date, Qualified Calls
Zip Data: Location ID
I want to create a new column in powerpivot to calculate the number of calls per Location ID for between Jan 1, 2014 and Jan 31, 2014 in the Zip data table
This is the formula I came u with
=CALCULATE(SUM(RawData[Qualified Calls]), DATESBETWEEN(RawData[Date], date(2015,01,01),date(2015,01,31)), filter(RawData,RawData[Location ID]=ZipData[Location ID]))
But this returns the sum of all the locations for every single row, instead of by location ID in the ZipData table
What Can I do so that calculate sum, or any calculate formula will filter by location ID???
I have two tables Raw Data and Zip Data. Relevant columns are
Raw Data: Location ID, Date, Qualified Calls
Zip Data: Location ID
I want to create a new column in powerpivot to calculate the number of calls per Location ID for between Jan 1, 2014 and Jan 31, 2014 in the Zip data table
This is the formula I came u with
=CALCULATE(SUM(RawData[Qualified Calls]), DATESBETWEEN(RawData[Date], date(2015,01,01),date(2015,01,31)), filter(RawData,RawData[Location ID]=ZipData[Location ID]))
But this returns the sum of all the locations for every single row, instead of by location ID in the ZipData table
What Can I do so that calculate sum, or any calculate formula will filter by location ID???