Hi all,
I'm still pretty new to SPSS and trying to find my way around the different analyses that are possible. I'm a bit stuck on replicating one analysis I tend to do in Excel, involving distinct counts for a pair of string variables.
Imagine that I have the following data set:
Client - Product - Price
Adam - Apples - $2.00
Berta - Apples - $1.80
Doug - Apples - $1.50
Doug - Apples - $1.80
Carl - Bananas - $1.50
Adam - Oranges - $2.20
Doug - Oranges - $2.50
I would like to know:
How many different products did each client buy?
So in this case, I would expect the following results:
Client - Distinct Product Count
Adam - 2
Berta - 1
Carl - 1
Doug - 2
(Note that for Doug it should be 2, not 3, because he bought Oranges once and Apples twice but I am interested in distinct products)
In Excel, this is possible by using pivot tables and distinct counts, but I have no idea how to implement this in SPSS (or if it is even possible).
Any pointers will be highly appreciated
I'm still pretty new to SPSS and trying to find my way around the different analyses that are possible. I'm a bit stuck on replicating one analysis I tend to do in Excel, involving distinct counts for a pair of string variables.
Imagine that I have the following data set:
Client - Product - Price
Adam - Apples - $2.00
Berta - Apples - $1.80
Doug - Apples - $1.50
Doug - Apples - $1.80
Carl - Bananas - $1.50
Adam - Oranges - $2.20
Doug - Oranges - $2.50
I would like to know:
How many different products did each client buy?
So in this case, I would expect the following results:
Client - Distinct Product Count
Adam - 2
Berta - 1
Carl - 1
Doug - 2
(Note that for Doug it should be 2, not 3, because he bought Oranges once and Apples twice but I am interested in distinct products)
In Excel, this is possible by using pivot tables and distinct counts, but I have no idea how to implement this in SPSS (or if it is even possible).
Any pointers will be highly appreciated