Power Query Repeated Column

cmcreynolds

Active Member
Joined
May 21, 2015
Messages
295
I am trying to use part of the filename in the data - I split the column and used delimiters to obtain the text I need. Now I'd like it repeated as I expand the "Content". When I tried this 5 months ago, the text repeated just fine, but now it disappears when I expand the "Content" column.


Here are the lines of code after I removed other columns:

#"Removed Other Columns" = Table.SelectColumns(#"Renamed Columns",{"ClientID", "Content"}),
#"Combined Binaries" = Binary.Combine(#"Removed Other Columns"[Content]),
#"Imported CSV" = Csv.Document(#"Combined Binaries",[Delimiter=",",Encoding=1252]),
#"Promoted Headers" = Table.PromoteHeaders(#"Imported CSV"),
#"Changed Type2" = Table.TransformColumnTypes(#"Promoted Headers",{{"First Name", type text}, {"Last Name", type text}, {"Student Number", type text},...etc. But no "ClientID"

Any idea why it wouldn't repeat?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I got it to repeat but in a really weird way -

I created a custom column and used "Excel.Workbook([Content])" to extract that to a table, removed the "Binary" content, but kept my field; then I expanded the "Table" column - THEN it repeated, but I had to promote headers and rename my column, which I'm okay with.

Weird way to solve it and I'm completely open to suggestions as to other ways to do this.
 
Upvote 0
But when I try to add another CSV file to the folder, it blows up. :( Ugh

However Csv.Document([Content]) seems to help?

Now my issue is that when I then promote headers, it takes the data and promotes it as a header. Renaming it is great except it will always look for that specific data to rename...So, I sorted the data and will hopefully never ever have a ClientID that alphabetically comes before the one I used.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,115
Messages
6,176,479
Members
452,729
Latest member
fizzay_pop

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top