jameddelaney
New Member
- Joined
- Jan 28, 2012
- Messages
- 2
I have two PowerPivot tables:
1) AgentTimeData
I am using the key fields to join these two tables together. I’d like to create a PivotTable from this PowerPivot data that will show me a list of AgentUserNames down the left and Statuses across the top and a the DurationAdjusted where DurationAdjusted will sum up all of the respective rows from the AgentTimeData and subtract the respective rows from the AgentTimeDataAdjustment table.
So far I have created a DAX measure that doesn’t accomplish this task. It looks like this:
=sum(AgentTimeData[DurationOfTimeInStatus]) – sum(AgentTimeDataAdjsutments[DurationOfAdjustment])
Can someone please tell me what I am doing wrong?
1) AgentTimeData
- Data source: mysql
- Data description: There is a row in this table for each transition a representative makes. So as a representative transitions from the statuses “waiting for a call” to “talking” to “wrap up” to “waiting for a call” again, 4 entries in this table are created in this table
- Columns
- AgentUserName
- Status
- StartDateTime
- DurationOfTimeInStatus
- Calculated Columns
- StartDayYYYMMDD
- keyAgentTimeDataAdjustments: a concatenated sting of AgentUserName, Status & StartDayYYYYMMDD
- Data source: linked excel table
- Data Description: Sometimes the data that we get from the database isn’t 100% accurate. For example, a representative will forget to log out of their workstation at the end of the day and because the agent software doesn’t have a good auto log out feature or permit time in status adjustments to be made w/in the application we need this table to record those adjustments. For now all adjustments are negative (will reduce the time in status)
- Column
- AgentUserName
- Status
- DateOfAdjustment
- DurationOfAdjustment
- Calculated Columns
- DateOfAdjustmentYYYMMDD
- keyAgentTimeData: a concatenated sting of AgentUserName, Status & DateOfAdjustmentYYYYMMDD
I am using the key fields to join these two tables together. I’d like to create a PivotTable from this PowerPivot data that will show me a list of AgentUserNames down the left and Statuses across the top and a the DurationAdjusted where DurationAdjusted will sum up all of the respective rows from the AgentTimeData and subtract the respective rows from the AgentTimeDataAdjustment table.
So far I have created a DAX measure that doesn’t accomplish this task. It looks like this:
=sum(AgentTimeData[DurationOfTimeInStatus]) – sum(AgentTimeDataAdjsutments[DurationOfAdjustment])
Can someone please tell me what I am doing wrong?