Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Nks_Mr
Helper I
Helper I

Column of table not found

Hello everbody,

 

I want to transform the data below into 3 seperate lines (now it is one cell with three lines)

 

Nks_Mr_1-1733146487651.png

 with this code

 

let
    Source = Excel.Workbook(File.Contents(myPath"), null, true),
    mix = List.Zip({Text.Split(Source[Name]{0},"#(lf)"),Text.Split(Source[House number]{0},"#(lf)"),Text.Split(Source[Country]{0},"#(lf)")}),
    #"Converted to Table" = Table.FromList(mix, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Extracted Values" = Table.TransformColumns(#"Converted to Table", {"Column1", each Text.Combine(List.Transform(_, Text.From), "|"), type text}),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Extracted Values", "Column1", Splitter.SplitTextByDelimiter("|", QuoteStyle.Csv), {"Name", "House number", "Country"})
in
    #"Split Column by Delimiter"

 

 

However I get this Error:  
Expression.Error: The column 'House number' of the table wasn't found.
Details: House number

I also did it without House number and only Name and Country, then it said  column "Country" not found.

Do you have any recommendations?

Thank you very much in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Nks_Mr ,

I use the same code, but I have no problem.

6.png

Please make sure your column name is consistent with the name in the code.

Please check out your applied steps in the Power Query. I renamed the column in my table.

7.png

So, when I still use ‘Source’ as data source, it has the same issue as yours.

8.png9.png

Make sure you are using the latest data source.

10.png11.png

Best regards,

Lucy Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @Nks_Mr ,

I use the same code, but I have no problem.

6.png

Please make sure your column name is consistent with the name in the code.

Please check out your applied steps in the Power Query. I renamed the column in my table.

7.png

So, when I still use ‘Source’ as data source, it has the same issue as yours.

8.png9.png

Make sure you are using the latest data source.

10.png11.png

Best regards,

Lucy Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PijushRoy
Super User
Super User

Hi @Nks_Mr 
M Code is correct but maybe you have some extra space in the column header
Please double-click on the Column header and copy the name, then paste it in the below-highlighted place

PijushRoy_0-1733153679652.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Done, unfortunately has not worked 😕

rajendraongole1
Super User
Super User

Hi @Nks_Mr -  the column names in the source table might not exactly match what you're referencing in the code. Power Query is case-sensitive, and any extra spaces or typos in the column names could result in this error.

 

can you try the below attached modified pq code. 

 

Hope it works. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thank you!

However this doesn't seem to work. 

Nks_Mr_0-1733160973906.png

 

Hi @Nks_Mr 
It depends on data, please share the data in Google Drive, One Drive or paste as excel format




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





PijushRoy_0-1733249294477.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors