Forum

Create columns from...
 
Notifications
Clear all

Create columns from text field

3 Posts
2 Users
0 Reactions
821 Views
(@baxbax)
Posts: 127
Estimable Member
Topic starter
 

Hi,

I have a file containing company address details. The first column in the file denotes the company name, the second column the address field name, and the third column shows the actual address. There are 5 address fields for each company. 

I want to change the data layout so that there is one row for each company and the address fields become columns. I tried pivoting the data in power query but it just returns a value of 1 for the address entries. 

I have attached a file showing the current layout and the output I need.

Thanks

 

Bax


 
Posted : 22/05/2021 11:07 am
(@mynda)
Posts: 4783
Member Admin
 

Hi Bax,

You can pivot the Address Field column with the Details column containing the 'Value'. In the Advanced options choose 'don't aggregate'.

Mynda


 
Posted : 22/05/2021 9:33 pm
(@baxbax)
Posts: 127
Estimable Member
Topic starter
 

Hi Mynda,

I knew there had to be a simple solution. I didn't get as far as looking at the advanced options. Your solution works perfectly. 

Thanks for your input. Invaluable as always.

Bax


 
Posted : 23/05/2021 4:31 am
Share:
0