elliotstan
New Member
- Joined
- Feb 5, 2011
- Messages
- 18
Hi All,
I have a csv that lists a bunch of drivers in different report groups that are split by a comma in one column. I can use Power Query to easly split the groups into different columns however I need sort them into different columns as well.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Driver
[/TD]
[TD]ReportGroups
[/TD]
[/TR]
[TR]
[TD]Driver1
[/TD]
[TD][TABLE="width: 189"]
<colgroup><col width="189"></colgroup><tbody>[TR]
[TD="width: 189"]Milk, Logs, Powder[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Driver2
[/TD]
[TD][TABLE="width: 189"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Powder, Haul, Sand, [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Driver3
[/TD]
[TD][TABLE="width: 189"]
<colgroup><col width="189"></colgroup><tbody>[TR]
[TD="width: 189"]Milk, Logs, Haul, Powder[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 253"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Is there any way power query can also sort the columns so each different value will appear in the correct column like below?
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Driver
[/TD]
[TD]ReportGroup1
[/TD]
[TD]ReportGroup2
[/TD]
[TD]ReportGroup3
[/TD]
[TD]ReportGroup4
[/TD]
[TD]ReportGroup5
[/TD]
[/TR]
[TR]
[TD]Driver1
[/TD]
[TD]Milk
[/TD]
[TD]Logs
[/TD]
[TD]Powder
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Driver2
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Powder
[/TD]
[TD]Haul
[/TD]
[TD]Sand
[/TD]
[/TR]
[TR]
[TD]Driver3
[/TD]
[TD]Milk
[/TD]
[TD]Logs
[/TD]
[TD]Powder
[/TD]
[TD]Haul
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Cheers in advance for your help.
ED.
I have a csv that lists a bunch of drivers in different report groups that are split by a comma in one column. I can use Power Query to easly split the groups into different columns however I need sort them into different columns as well.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Driver
[/TD]
[TD]ReportGroups
[/TD]
[/TR]
[TR]
[TD]Driver1
[/TD]
[TD][TABLE="width: 189"]
<colgroup><col width="189"></colgroup><tbody>[TR]
[TD="width: 189"]Milk, Logs, Powder[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Driver2
[/TD]
[TD][TABLE="width: 189"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Powder, Haul, Sand, [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Driver3
[/TD]
[TD][TABLE="width: 189"]
<colgroup><col width="189"></colgroup><tbody>[TR]
[TD="width: 189"]Milk, Logs, Haul, Powder[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 253"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Is there any way power query can also sort the columns so each different value will appear in the correct column like below?
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Driver
[/TD]
[TD]ReportGroup1
[/TD]
[TD]ReportGroup2
[/TD]
[TD]ReportGroup3
[/TD]
[TD]ReportGroup4
[/TD]
[TD]ReportGroup5
[/TD]
[/TR]
[TR]
[TD]Driver1
[/TD]
[TD]Milk
[/TD]
[TD]Logs
[/TD]
[TD]Powder
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Driver2
[/TD]
[TD][/TD]
[TD][/TD]
[TD]Powder
[/TD]
[TD]Haul
[/TD]
[TD]Sand
[/TD]
[/TR]
[TR]
[TD]Driver3
[/TD]
[TD]Milk
[/TD]
[TD]Logs
[/TD]
[TD]Powder
[/TD]
[TD]Haul
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Cheers in advance for your help.
ED.