Power Query Unpivot with 2 Column Variables? Bad Data Into Good Data. Excel Magic Trick 1916 @excelisfun
Power Query Unpivot with 2 Column Variables? Bad Data Into Good Data. Excel Magic Trick 1916  @excelisfun
Uploaded November 2025 | Updated November 2026, 2 days ago
Download Excel File: excelisfun.net/files/EMT1916.xlsx
Buy excelisfun’s Power Query M Code book: mrexcel.com/products/the-transformative-magic-of-power-query-m-code-in-excel-and-power-bi
Buy excelisfun’s other Excel Books: amazon.com/stores/Mike-excelisfun-Girvin/author/B009Q5T4P2?ref=ap_rdr&ccs_id=6f8ce877-462f-447e-b825-7ede1f72a9d3
Free Excel Class from excelisfun: youtube.com/playlist?list=PLrRPvpgDmw0k7ocn_EnBaSJ6RwLDOZdfo

In this video learn how to convert bad data (cross tabulated table with two column variables and one row variable) into a proper data set for easier analysis using Power Query.
Topics:
1. (00:00) Introduction.
2. (00:31) New Power Query book by Mike excelisfun Girvin
3. (00:52) How a cross tabulated table translates into a proper table.
4. (01:37) Convert worksheet cross tabulated table into an Excel Table BEFORE bringing into the Power Query Editor.
5. (02:55) Use keyboard shortcut to bring Excel Table into the Power Query Editor.
6. (03:20) Power Query Editor.
7. (03:46) Transpose table for first time.
8. (04:00) Rename Steps in Query to make M Code easier to read.
9. (04:47) Merge fields.
10. (05:31) Transpose table for second time.
11. (05:40) Promote Headers
12. (05:53) Name Week Column
13. (05:59) Unpivot from Week column, then rename Volume column.
14. (06:40) Split merged columns and name two new columns.
15. (07:12) Investigate Volume column to see that there are numbers that represent volumes and text entries to indicate a cyber attack in the same column.
16. (07:45) Reference base query and create new query named Cargo Records.
17. (08:10) Filter out Cyber Attack Records.
18. (08:18) Add Data Types
19. (08:33) Reference base query and create new query named Cyber Attack Records, including filtering to show only Cyber Attack Records and adding Data Types.
20. (08:55) Load base query as a connection only and the two proper table queries as new queries on new worksheets.
21. (09:37) Summary
22. (09:48) Closing

#excel #microsoft #excelisfun #excelcourse #mikegirvin #excel365 #powerquery #mcode #powerbi #datacleaning #dataanalysis #exceldataanalysis #powerbidataanalysis #unpivot #baddata #splitcolumns #mergecolumns #transposematrix

This video has subtitles or audio translations in these languages: Afrikaans, Albanian, Amharic, Arabic (experimental), Armenian, Bangla (experimental), Bosnian, Burmese, Cantonese, Catalan, Chinese, Croatian, Czech, Danish, Dutch, Dutch (Netherlands), Estonian, Faroese, Filipino, Finnish, French, French (France), Georgian, German, German (Austria), German (Germany), German (Switzerland), Greek, Hebrew (experimental), Hindi, Icelandic, Indonesian, Irish, Italian, Japanese, Khmer, Korean (experimental), Kurdish, Lao, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Mongolian, Nepali, Norwegian, Pashto, Persian, Persian (Afghanistan), Persian (Iran), Polish, Portuguese, Portuguese (Brazil), Punjabi (experimental), Romanian, Russian (experimental), Scottish Gaelic, Serbian, Sicilian, Slovak, Slovenian, Somali, Spanish, Spanish (Latin America), Spanish (Mexico), Spanish (Spain), Spanish (United States), Tajik, Tamil (experimental), Tatar, Telugu (experimental), Thai, Tibetan, Tsonga, Turkish, Turkmen, Ukrainian, Urdu, Uzbek, Vietnamese, Welsh, Western Frisian, Zulu. Click gear icon below video to set subtitles, audio and language.
Power 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 # 71Amazing Excel Selection Keyboard Shortcut. Do You Know It? Excel Short 81
excelisfun |

Power Query Unpivot with 2 Column Variables? Bad Data Into Good Data. Excel Magic Trick 1916

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER