filtered counts in a Cross Tab
I have an Event data set that returns the following:
occured_date,type,user_pk,firstname,lastname,active,fullName
1/1/2010 6:06,login,38,JOHN,DOE,Y,John Doe
1/1/2010 8:10,login,77,JOE,SCHMO,Y,Joe Schmo
1/1/2010 8:13,entityIntelAdded,77,JOE,SCHMO,Y,Joe Schmo
1/1/2010 8:16,entityIntelAdded,77,JOE,SCHMO,Y,Joe Schmo
1/1/2010 8:22,entityIntelAdded,77,JOE,SCHMO,Y,Joe Schmo
1/1/2010 10:46,login,38,JOHN,DOE,Y,John Doe
In the report, I would like to list each user (fullName) as a single row in the first column. For each user I want to show total logins. So the first record might be "John Doe, 2". While I can group by fullName and get a count based on row["type"] == "login", I cannot seem to find a way to format as a spreadsheet with each user on a single line. I think a Cross Tab is what I need but can't seem to figure it out. Any Ideas?