Download Excel Files: Start: https://people.highline.edu/mgirvin/YouTubeExcelIsFun/EMT1495Start.xlsx Finished: https://people.highline.edu/mgirvin/YouTubeExcelIsFun/EMT1495Finished.xlsx
Entire page with all Excel Files for All Videos: http://people.highline.edu/mgirvin/excelisfun.htm
In this video learn how to take Invoice Shipping and Discount Amounts from an Invoice Level (Header) Transaction or Fact Table and allocate those amounts to the Invoice Line Item Level Fact Table so we can use the Line Level Product Criteria (Filter) to create a Shipping and Discount Amount Report by Product. This is a typical business problem where the grain (granularity) of the two Transaction / Fact Tables is different and in order to use a filter or condition / criteria from the Line Level Transaction / Fact Table we must first allocate the Header Level amounts to the Line Level.
In this video we use Power Query to take the three tables and convert them using Merges (Joins) and Custom Columns in Power Query into our final report.
Topics:
1. (00:07) Introduction & Problem Setup
2. (02:08) Power Query Solution including multiple Mergers (Joins) and Custom Columns.
3. (04:33) Duplicate Query
4. (04:51) F2 key to re-name column
5. (05:00) Add Custom Column using Add Column, Multiply to calculate Line Sales which will automatically add Table.AddColumn Power Query Function (M Code Function)
6. (07:45) Use Merge feature (Join feature) to “lookup” Product Weight.
7. (09:49) Add Custom Column using Add Column, Multiply to calculate Line Weight.
8. (10:21) Use Group By feature to add Sales and Weight for each Invoice. This is a Power Query feature to aggregate by a condition that is similar to PivotTables or SUMIFS in Excel.
9. (12:14) Use Merge feature (Join feature) to “lookup” Invoice Discount & Invoice Shipping
10. (13:10) Add Custom Column using Add Column, Divide to calculate Invoice % Discount.
11. (14:18) Merge Header Invoice Level Table with Line Item Table.
12. (15:30) Second Consecutive Merge, now to get Weight from dProduct Table.
13. (16:04) Add Custom Column using Add Column, Multiply to calculate Line Discount
14. (16:29) Add Custom Column by manually typing out formula for Line Shipping.
15. (18:07) Group By to get Final Product Report with correct amounts for Shipping and Discount
16. (19:03) Load Report to Excel Sheet
17. (19:30) Summary
Related Videos:
EMT 1493: Excel Formulas & PivotTable: Allocate Invoice Header Amounts To Transaction Line Item Table
EMT 1493 Part 2: Excel Array Formulas Allocate Invoice Header Amounts To Transaction Line Item Table
EMT 1494: DAX & Power Pivot: Allocate Invoice Header Amounts To Transaction Line Item Table
EMT 1495: Power Query: Allocate Invoice Header Amounts To Transaction Line Item Table
EMT 1495 Part 02: Power Query w Group By Rows: Allocate Invoice Amounts To Line Item Table
EMT 1496: Power BI Desktop: Allocate Invoice Header Amounts To Transaction Line Item Table
EMT 1497: Vote For Your Favorite “Allocate Invoice Header Amounts To Transaction Line Item Table”
Search terms in this video: Header Detail Granularity Reporting Problem, Invoice Level, Invoice Detail Level Mismatch, Invoice Granularity Mismatch Reporting Issue, Granularity Invoice Reporting Problem: Invoice Total / Invoice Detail, Reporting Invoice Shipping & Discount at Invoice Detail Level?, Allocating Invoice Totals to Invoice Detail Level (Granularity Reporting Problem), Header Detail Granularity Reporting Invoice Example, Header/Line Item Transactions, Header / Line Item Transactions Reporting Issues, Allocating Invoice Shipping & Discount to Product Report, Allocating Invoice Shipping & Discount to Invoice Line Level, Allocating Invoice Shipping Discount to Invoice Line Level, Two Fact Tables, Different Granularity, How To Allocate Header Amounts to Line Item Fact Table so we can Slicer by Product?, Allocate Invoice Header Amounts, To Transaction Line Item Table, Two Transaction Tables, Different Granularity, Slice Report by Product
Excel Magic Trick 1495