Deprecated: Creation of dynamic property CF\WordPress\DataStore::$logger is deprecated in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php on line 23

Deprecated: Creation of dynamic property CF\WordPress\Proxy::$pluginAPI is deprecated in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/Proxy.php on line 31

Deprecated: file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/codelights-shortcodes-and-widgets/codelights.php on line 20

Warning: session_start(): Session cannot be started after headers have already been sent in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/automatic-video-posts/vendor/ternstyle/wordpress/src/class/wordpress.php on line 53

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Deprecated: Creation of dynamic property ternplugin\youtube_video::$post is deprecated in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/automatic-video-posts/vendor/ternstyle/plugin/src/class/youtube_video.php on line 64

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-content/plugins/cloudflare/src/WordPress/DataStore.php:23) in /home1/cassanoc/public_html/bonbonsguide.com/wp/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":615,"date":"2018-05-16T12:41:42","date_gmt":"2018-05-16T19:41:42","guid":{"rendered":"https:\/\/bonbonsguide.com\/wp\/?p=615"},"modified":"2018-12-02T13:10:53","modified_gmt":"2018-12-02T20:10:53","slug":"emt-1495-power-query-allocate-invoice-header-amounts-to-transaction-line-item-table","status":"publish","type":"post","link":"https:\/\/bonbonsguide.com\/wp\/blog\/2018\/05\/emt-1495-power-query-allocate-invoice-header-amounts-to-transaction-line-item-table\/","title":{"rendered":"EMT 1495: Power Query: Allocate Invoice Header Amounts To Transaction Line Item Table"},"content":{"rendered":"

Download Excel Files: Start: https:\/\/ift.tt\/2rJIEMK Finished: https:\/\/ift.tt\/2wL7vEB
\nEntire page with all Excel Files for All Videos: https:\/\/ift.tt\/1kSFWvs
\nIn 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.
\nIn 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.
\nTopics:
\n1. (00:07) Introduction & Problem Setup
\n2. (02:08) Power Query Solution including multiple Mergers (Joins) and Custom Columns.
\n3. (04:33) Duplicate Query
\n4. (04:51) F2 key to re-name column
\n5. (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)
\n6. (07:45) Use Merge feature (Join feature) to \u201clookup\u201d Product Weight.
\n7. (09:49) Add Custom Column using Add Column, Multiply to calculate Line Weight.
\n8. (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.
\n9. (12:14) Use Merge feature (Join feature) to \u201clookup\u201d Invoice Discount & Invoice Shipping
\n10. (13:10) Add Custom Column using Add Column, Divide to calculate Invoice % Discount.
\n11. (14:18) Merge Header Invoice Level Table with Line Item Table.
\n12. (15:30) Second Consecutive Merge, now to get Weight from dProduct Table.
\n13. (16:04) Add Custom Column using Add Column, Multiply to calculate Line Discount
\n14. (16:29) Add Custom Column by manually typing out formula for Line Shipping.
\n15. (18:07) Group By to get Final Product Report with correct amounts for Shipping and Discount
\n16. (19:03) Load Report to Excel Sheet
\n17. (19:30) Summary<\/p>\n

Related Videos:
\nEMT 1493: Excel Formulas & PivotTable: Allocate Invoice Header Amounts To Transaction Line Item Table
\nEMT 1493 Part 2: Excel Array Formulas Allocate Invoice Header Amounts To Transaction Line Item Table
\nEMT 1494: DAX & Power Pivot: Allocate Invoice Header Amounts To Transaction Line Item Table
\nEMT 1495: Power Query: Allocate Invoice Header Amounts To Transaction Line Item Table
\nEMT 1496: Power BI Desktop: Allocate Invoice Header Amounts To Transaction Line Item Table
\nEMT 1497: Vote For Your Favorite \u201cAllocate Invoice Header Amounts To Transaction Line Item Table\u201d<\/p>\n

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<\/p>\n

Excel Magic Trick 1495<\/p>\n