CALCULATE function not taking into account date filters - Please help

arzanp

New Member
Joined
Aug 13, 2015
Messages
4
I have some sample data as per below
https://docs.google.com/spreadsheets/d/1X4lJK1M7zJpVNE8_aRBP5S5xq4nqy8VCs_E1Fbv3QDo/edit?usp=sharing

Each row in the table fdata has the following columns. [Name], [AHT], [Agent Group], [Date]

I have another dynamic date table that contains all dates between the earliest and latest dates in fdata called dimDate. And a relationship between the date columns in both tables is established . This table also stores month numbers, day numbers, months, days, quarters , years etc

I am trying to make a pivot table that shows how an agents AHT (average handle time) is tracking compared to the rest of the agents in the same agent group, for a date range selected by slicers

THe row filters on the pivot table are [Agent Group] then [Call Driver with Code] (which highlights specific enquiry types) . The values are the average of the AHT. Which works fine, filters by date and agent and skill group.

I then created a measure called "Skill Group AHT".
Code:
Skill Group AHT:=CALCULATE(AVERAGE(fdata[AHT]),ALLEXCEPT(fdata,fdata[Agent Group],fdata[Call Driver With Code],fdata[Date]),ALLEXCEPT(dimDate,dimDate[Date]))

I'd like to be able to add Name and Date slicers for this Pivot Table. When I add the Name slicer, the data seems to filter correctly populating the agents AHT for [AHT] and the entire agent groups AHT for [Skill Group AHT]

However none of the date slicers seem to filter the data. They only filter the basic [AHT] function and not the [Skill Group AHT] one

Can anyone highlight what I've done incorrectly here, I'm at a loss
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,224,115
Messages
6,176,479
Members
452,729
Latest member
fizzay_pop

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top