Forum Discussion
eldarkt
Microsoft Employee
9 years agoFilter by multiple sets of column
Hi all, I have a data set like this: Customer1_value1 Customer1_value2 … Customer1_value15 Customer2_value1 … Customer2_value15 … CustomerN_value1 … CustomerN_value15 0.229151652 ...
eldarkt
Microsoft Employee
9 years agoThanks, sdjensen!
Now I have this:
| Datetime | Attribute.1 | Attribute.2 | Value |
| datetime1 | Customer1 | _value1 | 0.229151652 |
| datetime1 | Customer1 | _value2 | 0.155057721 |
| datetime1 | … | … | … |
| datetime1 | Customer1 | _value15 | 0.324584312 |
| datetime1 | Customer2 | _value1 | 0.110479662 |
| datetime1 | Customer2 | _value2 | 0.16026891 |
| datetime1 | … | … | … |
| datetime1 | Customer2 | _value15 | 0.090275502 |
| datetime1 | CustomerN | _value1 | 0.967682291 |
| datetime1 | CustomerN | _value2 | 0.493830084 |
| datetime1 | … | … | … |
| datetime1 | CustomerN | _value15 | 0.48551334 |
| datetime2 | Customer1 | _value1 | 0.547241 |
| datetime2 | Customer1 | _value2 | 0.767585491 |
| datetime2 | … | … | … |
| datetime2 | Customer1 | _value15 | 0.906074292 |
| datetime2 | Customer2 | _value1 | 0.443983587 |
| datetime2 | Customer2 | _value2 | 0.223704644 |
| datetime2 | … | … | … |
| datetime2 | Customer2 | _value15 | 0.395398869 |
| datetime2 | CustomerN | _value1 | 0.59960649 |
| datetime2 | CustomerN | _value2 | 0.86645009 |
| datetime2 | … | … | … |
| datetime2 | CustomerN | _value15 | 0.221637108 |
| datetime3 | Customer1 | _value1 | 0.895628899 |
| datetime3 | Customer1 | _value2 | 0.814316364 |
| datetime3 | … | … | … |
| datetime3 | Customer1 | _value15 | 0.949635827 |
| datetime3 | Customer2 | _value1 | 0.101984896 |
| datetime3 | Customer2 | _value2 | 0.977557759 |
| datetime3 | … | … | … |
| datetime3 | Customer2 | _value15 | 0.922149649 |
| datetime3 | CustomerN | _value1 | 0.059627022 |
| datetime3 | CustomerN | _value2 | 0.234168244 |
| datetime3 | … | … | … |
| datetime3 | CustomerN | _value15 | 0.065165743 |
| … | … | … | … |
Do you know is it possible to convert it to structure described (under "to this:") in my previous post?
I tried "pivot", it didn't work...
Thanks again for your help!
sdjensen
Solution Sage
9 years agoHi eldarkt,
This approach should do the trick
1. select the column 'Attribute.2'
2. Select 'Pivot Column' on the Transform tab
3. In the pop-up select 'Value' as Values Column
- eldarkt9 years ago
Microsoft Employee
Many thanks, sdjensen, it works!
My mistake when I tried pivot was I didn't turn off aggregation here (it was "count(all)" by default) :
and it showed "1" in each field instead of source values.
I changed it to "Don't Aggregate" and it did the trick.
What a wonderful forum it is! :smileyhappy: