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 1758

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 1758

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 1758

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 1758

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 1758

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 1758

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 1758

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 1758
{"id":619,"date":"2018-05-22T15:38:24","date_gmt":"2018-05-22T22:38:24","guid":{"rendered":"https:\/\/bonbonsguide.com\/wp\/?p=619"},"modified":"2018-12-02T13:10:50","modified_gmt":"2018-12-02T20:10:50","slug":"emt-1495-part-02-power-query-with-group-by-rows-allocate-invoice-amounts-to-line-item-table","status":"publish","type":"post","link":"https:\/\/bonbonsguide.com\/wp\/blog\/2018\/05\/emt-1495-part-02-power-query-with-group-by-rows-allocate-invoice-amounts-to-line-item-table\/","title":{"rendered":"EMT 1495 Part 02: Power Query with Group By Rows: Allocate Invoice Amounts To Line Item Table"},"content":{"rendered":"

Download Excel Start File:https:\/\/ift.tt\/2GFTSX2
\nDownload Excel Finished File: https:\/\/ift.tt\/2J2pBXM
\nEntire page with all Excel Files for All Videos: https:\/\/ift.tt\/1kSFWvs<\/p>\n

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.
\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. This video is different than Part 01 because we use Group By Rows to avoid two merges. This trick comes from Bill Szysz.<\/p>\n

Topics in this video:
\n1. (00:06) Introduction
\n2. (01:47) Compare Steps from first video to the steps we do this this video
\n3. (03:00) Start Query From Excel
\n4. (04:09) Duplicate Import Source Data
\n5. (04:40) Multiply Columns using Multiply feature to calculate \u201cLine Sales\u201d
\n6. (05:51) Merge to lookup Product Weight
\n7. (06:57) Multiply Columns using Multiply feature to calculate \u201cLine Weight\u201d
\n8. (07:14) Group By to aggregate Line Sales and Line Weight in order to get Invoice \/ Header Level Amounts, but we also Group By Rows to save the Line Item Level data so we can use it later in the query
\n9. (08:59) Merge to lookup Invoice Level Shipping and Discount Amounts
\n10. (10:31) Divide Columns using Divide feature to calculate \u201cInvoice % Discount\u201d
\n11. (11:31) Expand Group By Rows step from earlier in query to get line item detail
\n12. (12:30) Multiply Columns using Multiply feature to calculate \u201cLine Discount\u201d
\n13. (12:54) Create Custom Column to calculate \u201cLine Shipping Costs\u201d
\n14. (13:37) Edit the previous two columns by editing the Table.AddColumn function and add the Power Query Function Number.Round
\n15. (15:00) Group By to get Final Product Report
\n16. (16:50) Summary<\/p>\n

Other 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 1495 Part 02: Power Query with Group By Rows: Allocate Invoice Amounts To 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 Part 02<\/p>\n