This seems like a simple Pivot Table to learn with.
(这似乎是一个简单的数据透视表来学习。)
I would like to do a count of unique values for a particular value I'm grouping on.(我想为我正在分组的特定值计算唯一值。)
For instance, I have this:
(例如,我有这个:)
ABC 123
ABC 123
ABC 123
DEF 456
DEF 567
DEF 456
DEF 456
What I want is a pivot table that shows me this:
(我想要的是一个数据透视表,向我展示了这个:)
ABC 1
DEF 2
The simple pivot table that I create just gives me this (a count of how many rows):
(我创建的简单数据透视表只给了我这个(计算了多少行):)
ABC 3
DEF 4
But I want the number of unique values instead.
(但我想要的是唯一值的数量。)
What I'm really trying to do is find out which values in the first column don't have the same value in the second column for all rows.
(我真正想要做的是找出第一列中哪些值在所有行的第二列中没有相同的值。)
In other words, "ABC" is "good", "DEF" is "bad"(换句话说,“ABC”是“好”,“DEF”是“坏”)
I'm sure there is an easier way to do it but thought I'd give pivot table a try...
(我确信有一种更简单的方法可以做到这一点,但我想我会试试枢轴表......)
ask by user1586422 translate from so