This document provides instructions for using Power Pivot in Excel 2010 to analyze sales data from three tables - Product, Sales Order Header, and Sales Order Detail. It describes creating pivot tables to analyze total sales amounts by online vs direct sales and by product color. It also discusses adding calculated fields to filter and categorize the sales data by size, online/internal order type, and color. Finally, it explains how to add a measure to count the distinct number of products sold and build a report analyzing this by product color and order type.
This document provides instructions for using Power Pivot in Excel 2010 to analyze sales data from three tables - Product, Sales Order Header, and Sales Order Detail. It describes creating pivot tables to analyze total sales amounts by online vs direct sales and by product color. It also discusses adding calculated fields to filter and categorize the sales data by size, online/internal order type, and color. Finally, it explains how to add a measure to count the distinct number of products sold and build a report analyzing this by product color and order type.
This document provides instructions for using Power Pivot in Excel 2010 to analyze sales data from three tables - Product, Sales Order Header, and Sales Order Detail. It describes creating pivot tables to analyze total sales amounts by online vs direct sales and by product color. It also discusses adding calculated fields to filter and categorize the sales data by size, online/internal order type, and color. Finally, it explains how to add a measure to count the distinct number of products sold and build a report analyzing this by product color and order type.
2. Click on PowerPivot and then on PowerPivot Window 3. Click to Import Data from Database 4. Select the database and give Proper authentication to log in. 5. Select the List of Tables: select Product, Sales Order Header and Sales Order Detail Tables 6. Choose PivotTable option from ribbon 7. Now the difference is that we have 3 tables for analysis rather than 1 in normal Pivot table 8. Let us start with basic analysis: 9. Report Total amount sold online Versus the same total sold directly: Select OnlineOrderFlag (True/False) from SalesOrderHeader and LineTotal from SalesOrderDetail. Note: value “-1” stands for OnlineOrder and “0” stands for Direct Sales. 10. Report Total amount sold online Versus the same total sold directly w.r.t. color of the product: Use Color from Product Table 11. Warning: The result of the above query will depend on whether the relationship between two different tables in detected or not. 12. Report sum of quantity sold by filtering data on different measurement sizes; Online vs Direct sales and further categorised as product colour wise for different sizes. Use fields like: SizeUnitMeasure, Size, OnlineOrderFlag, Color, OrderQty. 13. Change the above report to Filter data on the basis of Size, and further categorised the same w.r.t OnlineOrderFlag, Color for different sizes. Change value “-1” which stands for ONLINE ORDER with value “Online Order” and “0” which stands for “Direct sales” with value “INTERNAL ORDER” by adding suitable calculated fields named “OrderType” in existing Table named as “SalesOrderHeader”. Add suitable formula with IF() function as written under: IF([onlieOrderFlag]<>0,”Online Order”,”Internal Order”). Rename this calculated field as “OrderType”. 14. Adding Measures: Implement a column that calculates the distinct count of Products sold. Solution: Right Click on the PowerPivot Field List for PRODUCT Table and choose New Measures. Add measure with name DistinctProducts and edit formula as “=COUNTROWS(DISTINCT(Sales_SalesOrderDetails[ProductID]))” . After this prepare report which shows Distinct Products sold with different Colour and categorise the same with OrderType.