Power Query: A Cleaner Way to Import & Appends CSV Files The Transformative Power of M Code EMT 1872 @excelisfun
Power Query: A Cleaner Way to Import & Appends CSV Files The Transformative Power of M Code EMT 1872  @excelisfun
Uploaded March 2025 | Updated November 2026, 14 hours ago
Link to Amazon M Book: amazon.com/Transformative-Magic-Power-Query-Excel/dp/1615470832
Download Excel File: excelisfun.net/files/EMT1872.zip
Learn how to import multiple Csv files and append them into a table while extracting the file name and adding it to each Csv table as a new column. The Power Query User Interface methods can do this, but it creates a cluttered and messy queries. See how to streamline this process with a few lines of Power Query M Code (not hard to do). More importantly, learn how to use the let expression to avoid Custom Function syntax and define a variable that can access any scope variable in a formula with back to back Table Function.
Topics:
1. (00:00) Introduction
2. (00:10) excelisfun needs your help!
3. (00:16) Data Transforming Goal
4. (01:49) Start Process of importing multiple csv files and appending into a single table.
5. (02:12) Look at Power Query User Interface Method, which is very messy.
6. (02:33) Clean and prepare table of Cvs files.
7. (02:57) Proper naming convention for M Code Identifiers
8. (03:26) Extract name from file name that we need as an attribute in each csv table.
9. (04:17) Create Custom Column to transform Csv tables and add a new column that adds the file name attribute in each row of each table. See the functions. Csv. Document, Table.PromoteHeaders and Table.AddColumn
10. (07:01) Learn how to use the let expression to define a variable when you are using back to back Table functions and you need to access data from the first of the two tables inside the back to back Table.AddColumn functions.
11. (09:35) Append the csv tables and choose columns in same M Code step.
12. (13:05) Summary
13. (13:17) Closing

Decimal and Currency Data Type Multiplying Errors Video: youtube.com/watch?v=6420PcTGBv8&list=PLrRPvpgDmw0ks5W7U5NmDCU2ydSnNZA_1&index=35

Avoid Powery Query Custom Function syntax, Use let expression to define variables and make M Code easier, each key word in Power Query Custom Functions,


#excel #microsoft #excelisfun #excelcourses #excelcourse #excelfunctions #excelformula #excelfunction #365excel #office365 #office365training #exceltips #exceltutorial #exceltraining #exceltricks #excelmaster #excelmagictrick #excelmagic
#powerquery #powerquerytutorial #csv #csvimport #fromfolder #mcode #letexpression #variable #powerquerytutorial #etl
Power Query: A Cleaner Way to Import & Appends CSV Files The Transformative Power of M Code EMT 1872Power Query Unpivot with 2 Column Variables? Bad Data Into Good Data. Excel Magic Trick 1916Power Query #8: Optimize Performance with SQL Server Database ConnectionSplit Column of Values with TEXTSPLIT!? With TEXTJOIN’s Help Yes! Spill an Array of Arrays. EMT 1907Why Data Analysis Needs Proper Tables and Power Query’s UnPivot Feature. Excel Magic Trick 1886Fix PivotTable When Dates Not Grouping: 3 Methods (Including Power Query). Excel Magic Trick 1890Excel 365 Basics #5: IF Function & Logical Tests IFS, IFNA, OR, AND, NOT, ISNUMBER Functions MoreFLATTEN Function & Cell Lists To Spill TEXTSPLIT Results Into Rectangular Range. EMT 1929INDEX & MATCH: Simultaneous 2-Way Lookups into Accounting Trial Balance & Add Results. EMT 1888Add Secondary Series of Numbers To Excel Chart & Add Second X-Axis Labels to Chart: EMT 1873Last Video From Mike excelisfun Girvin on Feb 16, 2026, 18 years at YouTube!!! Go Team!!!Remove Duplicates From Excel Data Validation Drop Down List!?!?  Short Excel # 71
excelisfun |

Power Query: A Cleaner Way to Import & Appends CSV Files The Transformative Power of M Code EMT 1872

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER