Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Grouping by rows

$
0
0

Hi All,

 

Have a question

 

I have data like the below, the purpose of this report is to find the most popular products betwee multiple retaielr

 

RETAILER PRODUCT NAME

Retailer 1      PRODUCT 1

Retailer 1      PRODUCT 2

Retailer 1      PRODUCT 3

Retailer 1      PRODUCT 4

Retailer 1      PRODUCT 5

Retailer 2      PRODUCT 1

Retailer 2      PRODUCT 2

Retailer 2      PRODUCT 3

Retailer 2      PRODUCT 4

Retailer 2      PRODUCT 5

 

I'd like to convert this (potentially with transpose I think?) so that the data looks like this:

 

RETAILER 1  RETAILER 2

Product 1       Product 1

Product 2       Product 2

Product 3       Product 3

Product 4       Product 4

Product 5       Product 5

 

How would I go about ensuring that the retailer names are now the headers?

 

Cheers!

 

Alex


Viewing all articles
Browse latest Browse all 4999

Trending Articles