Hello, I have been trying to get a count of records based on 2 date fields matched against a date table. I have been able to do this with just a data table and pivot table using formulas but have not been successful doing the same thing from power pivot.
I want to determine the number of calls that were open in a specified date range.
My fact table records contains "Call_Entered_Date" and "Call_Closed_Date" DateTime fields for each record. The formula to determine if a call is open is simply "(Call_Entered_Date < DateKey) AND (Call_Closed_Date > DateKey)"
What I would like to see is a pivot table using a selected date range as follows:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Count[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]110[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]120[/TD]
[/TR]
</tbody>[/TABLE]
I have been trying to use the calculate function but I dont seem to be able to use the DateKey in the filter.
Any suggestions would be most appreciated
I want to determine the number of calls that were open in a specified date range.
My fact table records contains "Call_Entered_Date" and "Call_Closed_Date" DateTime fields for each record. The formula to determine if a call is open is simply "(Call_Entered_Date < DateKey) AND (Call_Closed_Date > DateKey)"
What I would like to see is a pivot table using a selected date range as follows:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Count[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]110[/TD]
[/TR]
[TR]
[TD]2/1/2013[/TD]
[TD]120[/TD]
[/TR]
</tbody>[/TABLE]
I have been trying to use the calculate function but I dont seem to be able to use the DateKey in the filter.
Any suggestions would be most appreciated