cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Losing Column Values when Using 'Combine' for CSV values

Using Combine .csvs for 5 identically formatting CSV files in powerquery. I have a field called 'DATE' which is the first column in the files, and the row values are loading correctly for the first csv file, but for the following 4 files, I'm losing the row values in the column DATE in the other csv's. They are blank, but in the source file csvs they are not.  Any ideas? 

SourceInventory List.PNGList of Steps Combine.PNG

1 REPLY 1
Highlighted
Super User III
Super User III

Re: Losing Column Values when Using 'Combine' for CSV values

Power Quey is case sensitive. So an easy explanation would be that there is a slight deviation in writing. (also spaces and non printable characters could cause problems - Text.Trim and Text.Clean would help.)

 

Another troublemaker are additional columns, as the automatic expansion that you're using here creates a hardcoded value of columns to expand. Removing that solves that problem.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021