Problem using set analysis with aggregate and rangesum
Hi, I'm creating a chart that uses set analysis to restrict the output. Everything seemed to be working but then I noticed that a dimension value is being returned for items that are being excluded by the set analysis. In the chart image below the hour for 6am shows up but there is no information for 6am based on my set analysis. The information for 6am is for departments not included.
I've tried putting the set analysis right after the AGGR, on the individual counts and on all of them but 6am is always being returned. Here are my AGGR functions for reference. Thanks in advance for any help.