Power Query Count & Extract Customer Names for 8 Sales Coupon Groups

Power Query Count & Extract Customer Names for 8 Sales Coupon Groups

ExcelIsFun via YouTube Direct link

) Introduction & Problem Introduction

1 of 22

1 of 22

) Introduction & Problem Introduction

Class Central Classrooms beta

YouTube playlists curated by Class Central.

Classroom Contents

Power Query Count & Extract Customer Names for 8 Sales Coupon Groups

Automatically move to the next video in the Classroom when playback concludes

  1. 1 ) Introduction & Problem Introduction
  2. 2 ) Import From Excel Table
  3. 3 ) Left Outer Merge or Left Outer Join
  4. 4 ) Reference another Query in Power Query
  5. 5 ) Filter to show null
  6. 6 ) Group By Feature to aggregate and to list all matching records for Customers who went to Zero Stores. Use Count Rows and All Rows.
  7. 7 ) Edit Table.Group Function to show just the column and convert to a list rather than a table (Change table type to list type in Group By action).
  8. 8 ) Underscore character in Power Query = All items in Row
  9. 9 ) Start Code for final report
  10. 10 ) Filter out nulls to avoid errors from inconsistent data type in column.
  11. 11 ) Remove Duplicates
  12. 12 ) Steps to get three columns, one for each Store and then list the stores that each customer visited: 1) Duplicate Column then Pivot.
  13. 13 ) Group By to Count Customers in each Coupon Group and List of Customers in Each group using Count Rows and All Rows.
  14. 14 ) Second Time we Edit Table.Group Function to show just the column and convert to a list rather than a table (Change table type to list type in Group By action).
  15. 15 ) Append Earlier Query to current query so that the count and list of customers that visited no stores is listed in the final report.
  16. 16 ) Edit Previous Query to update current query.
  17. 17 ) Add Custom Column to Convert the Record to a List. This lists created for each row will be the columns in the final report. In this step see the Power Query Functions: Record.ToList, List.RemoveLas…
  18. 18 ) Create a column that represents the Field Names (Column Names / Headers) in the final Table/Report. See how to add a column as an Index and then add a Prefix.
  19. 19 ) Edit M Code using Advanced Editor and add a line of code that uses the Table.FromColumns Function to combine the Columns and Headers into a table.
  20. 20 ) Check Query Report by adding store to transaction table
  21. 21 ) Look at Previous Steps in the Power Query Editor to check if the edited code will be correctly reflected and to verify if all stores are listed.
  22. 22 ) Summary

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.