Forum

Unwrap text in some...
 
Notifications
Clear all

Unwrap text in some columns and rows

12 Posts
2 Users
0 Reactions
124 Views
(@kjbox)
Posts: 69
Trusted Member
Topic starter
 

I am importing a CSV file into PQ.

No problem with the import,  but the problem is 2 columns have the text in a "wrap" format. This means that the value in another column does not appear in PQ and only the first line of the wrapped text shows.

Is there a way to unwrap columns in PQ?

 
Posted : 06/11/2024 5:08 am
Riny van Eekelen
(@riny)
Posts: 1198
Member Moderator
 

What exactly do you mean by text in "wrap" format? Can you upload and example of a CSV file with such data?

 
Posted : 06/11/2024 7:19 am
(@kjbox)
Posts: 69
Trusted Member
Topic starter
 

I mean text is like in excel if you enter text in a cell and click the Wrap button on ribbon.

The CSV file is attached.

Filter Name column for Agga, then look in Description column.

The only workaround I can think of is to save the csv file as xlsx, then select the Description column and unwrap all rows, then save back to csv. That works but I was hoping to avoid that and do the "unwrap" directly on the csv file in PQ.

 
Posted : 06/11/2024 9:37 am
Riny van Eekelen
(@riny)
Posts: 1198
Member Moderator
 

The CSV didn't come through. Please try again. This time don't forget to press 'Start upload' and wait until it's complete before submitting your reply.

 
Posted : 06/11/2024 10:55 am
(@kjbox)
Posts: 69
Trusted Member
Topic starter
 

The file was too big for upload to be accepted.

I will reduce a load of unused columns and about 6000 rows and try again.

 
Posted : 06/11/2024 11:00 am
Riny van Eekelen
(@riny)
Posts: 1198
Member Moderator
 

Understood!!

 
Posted : 06/11/2024 11:06 am
(@kjbox)
Posts: 69
Trusted Member
Topic starter
 

Here is the file reduced from 2,200kb to 44kb

The wrapped text is in column B

The actual file has 7,500 rows and 80 columns.

 
Posted : 06/11/2024 11:36 am
Riny van Eekelen
(@riny)
Posts: 1198
Member Moderator
 

This is what I see when I connect PQ to the CSV, columns A and B. It all seems to line up pretty good, though it probably need som work to clean it up.

Screenshot-2024-11-05-at-16.52.01.png

What do you see?

 
Posted : 06/11/2024 11:54 am
(@kjbox)
Posts: 69
Trusted Member
Topic starter
 

Everything seems ok with the sample file, but that is not the same with the actual file.

I will investigate some more and come back with another sample file where PQ does not work.

 
Posted : 06/11/2024 12:08 pm
Riny van Eekelen
(@riny)
Posts: 1198
Member Moderator
 

OK

 
Posted : 06/11/2024 12:20 pm
(@kjbox)
Posts: 69
Trusted Member
Topic starter
 

The csv file is located in a folder of similar csv files. I import the folder contents into PQ, sort "Date Created" descending to get most recent file in top row, then do a "keep top row".

I had made an error, expanded Table not Binary. Changed to expand binary and all is good.

Sorry to waste your time Riny, but at least making the sample file, and that working, made me realise my original error.

 
Posted : 06/11/2024 12:37 pm
Riny van Eekelen
(@riny)
Posts: 1198
Member Moderator
 

No worries!

 
Posted : 07/11/2024 2:45 am
Share: