Aleksandar89
New Member
- Joined
- Dec 12, 2017
- Messages
- 4
I am trying to solve problem. I have in my dataset among others also columns named customer and product.
Customer can have many products and entries are repeated. I need to have a new column to give number of unique products based on every row of customer column.
Dataset is huge and it's needed to be done in power pivot.
[TABLE="width: 302"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Product[/TD]
[TD]Distinct # of prod. For cust.[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]aaa[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]aaa[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]aaa[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]bbb[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]xxx[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]z[/TD]
[TD]xxx[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]z[/TD]
[TD]yyy[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]z[/TD]
[TD]qqq[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Customer can have many products and entries are repeated. I need to have a new column to give number of unique products based on every row of customer column.
Dataset is huge and it's needed to be done in power pivot.
[TABLE="width: 302"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Product[/TD]
[TD]Distinct # of prod. For cust.[/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]aaa[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]aaa[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]aaa[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]x[/TD]
[TD]bbb[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]y[/TD]
[TD]xxx[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]z[/TD]
[TD]xxx[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]z[/TD]
[TD]yyy[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]z[/TD]
[TD]qqq[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]