You are on page 1of 23
Final PDF to printer 410. chapter 11 Per Chaper Advanced: Anang Dilan’ Daa Pred Sales Rens Lo11 Analyze returned [ESTIMATING SALES RETURNS [The recent revenue recognition standards increased the emphasis on valid, reasonabl stimates of sales returns matched to the same time period the original sale was made, Companies must assess whether their models and methods of estimating returns arc sppcopriat, In this chapter, we will work through 2 project to deseribe (Question Set 1), diagnos (Question Set 2), and predict sales returns for Dillard's (Question Set 3). Using these vat us analyses, we develop « potential model useful in predicting Dillard's sales returns an est for reasonableness ‘There are three main question sets 1. Question Set | focuses on exploring the sum of returns end the percentage of returned) sales by state, product, and month using Tableau data visualizations 2, Question Set 2 continues the analysis with hypothesis tests to see ifthe percent of sales returned is significantly higher in Arkansas (where Dillard’s is headquartered) versus other states, as well as to see i the percent of sales returned is significantly higher during the holiday season (December and January) than any other time of the year 3. Question Set 3 focuses on exploring how historical data can help predict the future percentage of returned sales through PivotTables,PivotCharts, and regression testing in Exeel Each question set has 2 set of instructions to guide you through mastering the data, erforming the analysis, and communicating your results, UESTION SET 1: DESCRIPTIVE AND PLORATORY ANALYSIS sales to find In this question set, we use analytics to find explanatory variables. ecleetoy ndepencera , / variables using Puestion 1.1: Which Attributes Could Help Predict ceserine and ercentage of Returned Sales? permry fo answer this question, we wil ane the Dilan’ database ER-Dagram ia Mitoso Od Serve and fon sme swt quai oer the date 1 Look at the ERDIagran for Dil’ Daten Appendix WCOB_DILLARDS ER Disran QU. Which ofthe atts ited seem ie they might be interesting a explana Var top Dil’ ep and pln for ptcentaeo etred sale! ye into the Tables: Create Queries to See What Sort Data Each Attribute Represents: fo get beter ide of wat datas represented by ech ofthe atts, we can un pe ve eis to este top 10 fons each ble If You previo completed Lab 29 Jou explored he data ina snr we) Ginga preview out he top 10 rows in ata Final PDF to printer (Chapter 11 Project Chapter (dance: Anan Dad tao Pe Sales Rees 44 fe Helpful because the queries can ran quickly (e benefit when the tables hold a massive mount of daterunning a query to return all ofthe records would take quite «long time!) 2. Ensue that you are connected to the University of Arkansas Remote Desktop. Open ‘Microsoft SQL Server Management Studio to access the WCOB_Dillards data and input the Server Name in the Connect to Server window thet yous instructor provided you, (Leave the default for authentication to Windows Authentication, and cick Connect.) SQL Server ae 3 seer ee (ez) | coed || Hee Gee 3. To write a new query select New Query ffom the menu atthe top ofthe SQL Server application. Ensure that the database selected is WCOB_DILLARDS. Se SL 4 Toiew the op 10 rows inthe TRANSACT tbl, type the following query int he cn Wado SeLect oP 10 * ROW TRACT 5. To ee the rest of the query click Exeute. 5 also works fo run queries as aPC Shorteut RESIS [2- o- CW | Bien woospusios [pea] Soe SL 6. Explore the STORE, SKU, and DEPARTMENT tables with queries o preview the fst 500 rows, to get a better fee for the data, Q1-2, What benefit can you gain from selecting only the top few rows of your data, particularly froma large dataset? Final PDF to printer 412 Chapter 11 Projet Chaper Advanced: Anang Dilan’ Daa Pred Sales Rens E3—ANEE TOOTING ATH Ta TO Tae HW Whe DEPARTMENT Table, WaT ao you think the altributes DEPTCENT_DESC, DEPTDEC_DESC. and DEPT_DESC represent? How are the three attributes different from fone another? QL-4, After executing these queries, which attributes do you think would be useful t help understand percentage of returned sales? uestion 1.2: How Can We Explore the Product jierarchy Through Data Visualization? The theatres that you discovered inthe DEPARTMENT table, DEPTCENT_DESC, DEPTDEC_DESC, and DEPT_DESC. represent “century,” “decade” and “department si it isthe way Dilan’ organies ts produc hirarchy. Re product hierarchy contain -partment Century (example: Children’s), Department Decade (Example: Basics. girls, fants, sessona, ete), and Department (example gis cots, srs swim, boys coats te) Ie ina! prodiets ace oni denies by SKU and Item ID (no description. Wecan ute Table to explore which entries, decades, and deparimente have the high st average percentage of retuned sales in our sample period pore and Visualize Data in Tableau lyze Returns by Product and State 7. While still in the UAsk system, open Tableau 8. Because the raw data is stored in SQL Server, click Mierosoft SQL Server, then enter the Server and Databate information associated with the Dillard's data 9, We can work with data from several tables at once. Drag the following tables into the Data source window to work with them in Tableau: + TRANSACT + skU + STORE + DEPARTMENT 10, Click Sheet 1 to begin working with your deta cones DY Se Source ein Sta IA coe 11, Double-lick on the Measure Sale Price and the Dimension Tran Type to get glimpse) of the grand totals of returns and purchases inthe dataset [Tableau responded to your doubleslick with three default: it placed the measure (Salq Price) in the Rows and the dimension (Tran Type) in the Columns, it ereated a bar chart snd it defaulted the aggregate measure to SUM. All ofthese defaults are sufficient for th evel of analysis we are doing et this stage. 1-5. We can drill down into this grand total to make 4 more meaningful bar chart Before we do so, make a prediction about waich types of products get returne the most frequently to Dillar’s Final PDF to printer Chapcer 1 Project hap (Adan: Anabsing Dilan Data Pre Sales Rens 413 [2 To Toca on only returns, we ean ad Tran Type to the Filfers sel Remove the checkmark in the box next to P so tat the only data we see are Returns data, and click OK, (peers om nt Bemoumee Basan in cantante se: Tabu Seta eA oe 13. Once this filter is created, you can apply i to every worksheet in this Tableau worke book, Right-click the Tran Type filter pill and select Apply to Worksheets, From the ‘options provided, select All Using Related Data Sources aa — as — = — in Cee me ces [cars tomee Sou: en Sta oA gh eee GF sae Final PDF to printer 414 chapter 11 Pret Chap Advanced Amazing Dilan’ Dat Pret Sates Reurs [IA Double-lck the Deptcent Dese dimension. This isthe Top of he product hierarchy: contains the broadest categories. Deptcent Desc should be automatically added to the ‘Columns after Tran Type 15. We can make this easier to read by swapping the rows and columns and by sorting the data, These buttons are located near each other near the top of the Tableau window. Click each of them eo o-6-a > (sama) |e a» See Tos Sober ne At rate Q6. Which two Centuries have the highest sum of returned sales? 16, Right-click Sheet 1 to cename this sheet. Name it Returns by Century. New Worksheet New Dashboard Uh New Story Cony Paste Duplicate Duplicate as Crosstab Berta. Hide Al Sheets Unhide Al Sheets ‘Copy Fermetting Paste Formatting Color ‘Se Te Sot eA ee Final PDF to printer (Chapter 11 Project hap (Adan: Anabing Dilan Data Pre Sales Rens 418, ITT Righthek the ab (ow named Returns by Century) again To duplicate Eh New Weeat FL NerDabon Oh Newsten, ey eke pot Hide Al Sess Unbide AN Shoes oy Formating| Pace Foumatiog ole » ‘This will allow you to modify the same bar chart by adding more detail while stil preserv ing the original chart. 18. Rename the new sheet (defaulted to being named Returns by Century (2)) Sandbox so that i is recognizable as a shect for exploring. 19. Doubleclick the Deptdee Dese dimension to further drill down into the product details. Deptdec Dese willbe added to the Rows shell. 0. Continue working withthe data in a variety of ways to explore it. Removing DeptCent ese provides you a way to look atthe returns by Decade without the hierarchy. Adding Dept Dese provides even more detail. You ean also click the Show Me tab to change the way your data is visualized, QI-7. Write down thre insights that you have gained {rom exploring the data in the Sandbox sheet 21. Create a new sheet by clicking the icon to the right of the current sheet you are working on Sandbo (=) ee 416 chapter 11 Pret Chaprer Advanced Amazing Dilan’ Dat Pree Stes Reurs be. This map will be easier to read as a filled map instead ofa symbol map, so select File Doubleclick the dimension State to create a map, Tableau will default # symbol ‘map with a symbol in ezch state that Dillards has had returns in during our sample period. Ifit does not default to a filled map, State may not have imported as a geo- ‘graphic datatype. Right-click on the Abe icon next tothe State attribute to select Geographic Role, and then assign it asa State/Province datatype. 3. Double-click the measure Sale Price to provide more detail to the map. Map from the Show Me tab. Hil | or Se tae Sobre ne, Ate rae 5, Rename this sheet Returns by State ‘To explore the data in greater detail, we can create a Dashboard with both of our sheet ‘Returns by Century and Returns by State) and have them interact with one another. 6. Click the New Dashboard icon. Final PDF to printer Final PDF to printer ‘Chapter 11 Project hap (Adan: Anabsing Dian Data Pre Sales Rens 417 raumsovstee A) Seat: ae Seber Aer 27. Drag and drop the two sheets. Returns by Century and Returns by State, into the dash ‘board and arrange them so that they are one on top ofthe other. 8. Click anywhere in Returns by Century to bring up interactive buttons tothe right (Click the Filter button (it looks like funnel) to use this sheet ase filter. ———— SSS = See: ie Seb ne Ae ered 19. Do the same for Returns by State Using the sheets as filters in the dashboard allows you to click one century to see how Ine levels of percentage of sales returned changes in each state, and also allows you to clic me state t0 See which centuries have higher percentage of sales retuned in each state. ‘Explore the data ia the dashboard and answer the next two questions! QI, Which Century has the highest sum of returns in Utah? Q19, Which state has a higher sum of returns inthe Cosmetics century than any other? jolyze Returns by Month It would also be interesting to sce which months have the highest amount of returns. QUO. Make a guess about which months you think likely see the highest amount of retuins 0. Create & new worksheet and re-name it Returns by Month, 531. Doubleclick the Sale Price measure 2. Doubleclick the Tran Date dimension. Tableau defaults to showing the change in zeturns over year in a line chart, Click the expand button on the YEAR(Tran Date) pillin the Columns shelf to see quarters then click the expand button on the new ‘QUARTER pill to see Months. am Scare Tae Star ne. Ala eed 3. To make the distinction in months clearer change the line charts to @ bar chart on the’ Show Me 2b, Final PDF to printer 418 chapter 11 Pret Chap Advanced Anazing Dilan’ Dat Pret Sates Reams F Show Me Hil Se Ses Tua Soar ne. Ai rate rioath over the three years of data provided. sales than just analyzing sums of returns? returned sales? Why or why not? cel’ Po ‘Query tools, then well pl the formed d [4, Remove the Quarter pill from the Rows shelf this will make it easier to focus on each QLIL. Which month saw the highest amount of returns in 2016? 2015? 2014? Why 4o you think these months see such high amounts of returns? After looking through total sums of returns across products, states, and months, it's tim: turn our focus toa more precise measure of returns: the percentage of returned sales QL-12, Why can we draw more precise insights from analyzing percentage of returned} QLI3, Do you think the same two months that saw high sums of returns in 2014, 2015, and 2016 will also be the two months with the highest percentage of In order to explore percentage of returned sales, we first need to transform the data usin into Excel to see how the per Final PDF to printer Chapeer 11 Project hap (Adan: Anabing Dilan Data Pre Sales Rens 419 ‘ercentage of Returned Sales eve it a summaty of the Master the Data work that you need to do in Excel (remembe ial you need to connect to the WCOB_Dillards database in Excel on the University o Arkansas Remote Desktop): Prcenn the Data to Prepare It for Analysis of 5. Navigate to the Data tab on the Excel ribbon and click New Query > From Database > from SQL Server Database, then tetrieve data using the following query (remember to click Advanced Options to input the query): ‘select year(tran_date) as year, month(tran_date) as aonth, state, ‘transact. store, tran_type, sun(sale price) as anount fros transact inner join store on transact. store = store.store where year(tran_date) = 2014 or year(tran-date) = 2015 ‘group by year(tran date), month(tran date), state, transact.store, tran_type order by year(tran.date), month(tran date), state ‘This query returns only the specific atteibutes we wil use to analyze the data. For th ext several steps of analysis, we are going to focus solely on differences across lates. and years. We are also limiting the dataset to two years so that we can work with thi lata in Excel (if we bring in all ofthe years’ worth of data, there are too many records fr Excel to hold). 6. Ifthe Power Query Editor does not show up immediately, click Edit inthe data pre- view window to open the Power Query Editor. ‘The frst transformation we need to do is to create two separate columns: one col for retuens and one column for purchases. This wll allow us to look athe separate transac ion types more easily (without having to add a filter), and it will aso allow us to create Peccentage of Sales Returned column, 37. In the Power Query Ealtor, select Transform then Pivot Column to pivot the Tran_ ‘Type column (select amount forthe Value Column) After this transformation is done, each Purchase transaction resulted in a “null” valu in the new Returns column, and each Returns transaction resulted in a “nul” value in the Purchases column. We need to replace each null value with 0 8. Replace Values (Transform Tab) in both the new P and R columns; replace Null with 0, 12. From the Add Colum tab, click Custom Column to create a % of Sales Returned col: ‘umn using the formula: (IF [P]=0 THEN 0 ELSE [RV/[P)). (0. From the Home tab on the ribbon, click Close and Load to load the deta into Excel, ‘You should have 7,139 rows (excluding the header) loaded, 11, Save your Excel file as Chapter1iDataset.xisx. Ensure that you ar saving the file fon the University of Arkansas Remote Desktop so that you can access it again with |__Tabteau from the remote desktop. Final PDF to printer 420. chapter 11 Projet Chaper Advanced: Anang Dilan’ Daa Pred Sales Returns [load and Work with Data In Tableau 2, Afler mastering the data in Excel, open Tableau, 3, Since your data is stored in Excel, click Microsoft Excel, then browse tothe file loca tion to Open it. ‘The data will appear in the Data Source window. Notice that each ofthe attributes has atatype that Tableau automatically selected, * * ° * * elk Year Month State Store P R Sof Sales Return. 4, Year and Month are not easy to filter when they're classified as 2 Number, so click the| # sign on each variable and change them to String. Ths will have Tableau treat those ‘variables as text, making them easier to filter. | Number deca) [=| ser oot bac Tene Sec: Toe Sota ne Asis ee |analyze Percentage of Sales Returned by Month fow that data ig loaded, we can create 2 map to see how average percentage of return ales compares across states 5, Click Sheet 1 to begin working with your data, 6, Rename this sheet Sales Returned by Month ile Gove worrshent *] Se eta Soba ae. rate 147, Doubleslick on the Measure % of Sales Returned. ‘Tablegu defaulted the aggregate measure to SUM. It would be more meaningful to vi he % of Sales Retumed aggregated as an Average 8. Right lick the SUM(% of Sales Returned) pill in the Rows shel lao. Select Measure (Sum) ftom the window that popsup 50, Select Average. Final PDF to printer (Chapter 1 Project Chapter (dance Anan Dad tao Pes Sales Reres 24 rr). 51. Doubleclick Year and Month dimensions to add them to the Columns shelf QI+14, Which month has the highest percentage of returned sales in 2014? 2015? QU-15. Which month has the lowest percentage of returned sales in both years? QL-S. Why do you think ths dlference occurs from analyzing sums of returns? teat Percentage of Sales Returned by State 52. Create a new worksheet 3. Doubleclick the dimension State o create map. Tableau wil default to a symbol map with a symbol in each state that Dilar’s has had sales or returns during or sample period 4. Doubleclick the measure % of Sales Returned to provide more detail to the map. 5. This map wil be easier to read asa filled map instead ofa symbol map, so select Filled ‘Map from the Show Me tab Final PDF to printer 422 chapter 11. Projet Chaper Advanced: Anang Dilan’ Daa Pred Sales Rens Lo 142 tusvate hypothesis testing using agnostic anaiytis to [compare and contrast sales returns around the holiday season, as well as comparing sales returns in Arkansas (where Dilare's ts based) fang the rest of the county, The aggregate Tor % of Sales Revumed deTaulted To Sum again, $0 CHARgE WTO a Average, 57. Re-name this sheet Returns by State. ‘To explore the data in greater detail, we can create a Dashboard with both of our sheet ‘Sales Returned by Month and Revusns by State) and have them interact with one another 8, Click the New Dashboard icon. tae ysite 9, Create a dashiboard that contains both sheets, Set both sheets as filters for the dash- ‘board so that you can explore the data Ql-17, Which state nad the highest amount of returns in 2014? 2015? (Remember to activate your visuals as filters for the dashboard, To filter for 2014 or 2015, select the labels of 2014 or 2015). QUIS, What was the percentage of sales returned in California in January 2014? (QUESTION SET 2: DIAGNOSTIC NALYTICS—HYPOTHESIS TESTING uestion 2.1: Is the Percentage of Sales eturned Significantly Higher in January fter the Holiday Season? nthe previous activity for his dataset, you found thet January has the highest percentage sales fetumed ofall ofthe months, Ths is likely de tothe holiday season, While i pf to see which month has the highest amount of returns, would be more Useflt. find out i the difference i statistically significant. In ore to do so, we can run a hypoth sis test to determine if a significantly higher percentage of sales are zeturned duting thd Fronth of January than the rst ofthe months. To do so, we need to return to the Power Query Editor. Ensure you ae in the University bf Arkansas Remote Desktop If you have closed the ile you worked with in Question Set | pen it Ifyou have close the file, you will need to access the Power Query window. To do s0 turn tothe apreadhet that contains the data that was extracted i the query originally an lec a cell ofthe table to activate tae Query tb in the Excel ribbon. From the Query tb ec Bit open the Power Query editor. If prompted 1 do so lick Edit Permissions an Run the Native Database Query in the window that pops up. Then cepeat a siaula proces licking Edit Credentials, The query data should show up in the Power Query ator now Inthe Chapter] [Dataset xlsx Power Query Eaitor, do the fllowing |. From the Add Column tab in the ribbon, select Conditional Columa, Final PDF to printer [Chapter 11 Projet hap (Adan: Anabvsing Dilan Data to Pre Sales Rens 423 Eo aie |e Bw SO SO i pa ere mgr tng ee” ogee on eo Rae ies Cooma ere ere Sia bantu - Tithe Conditional Column window What pops up, illin The condition (you ean Teave the column name as ‘Custom we wil pivot this column shortly, so the name is nim portant) Indicate that anytime the month variable equals 1. then the column should display “Holiday.” otherwise, it should display “Non-Holiday”. Once you've input allo the information, cick OK. ‘Ad Cadena Colm et aie — Et= se Mario E206 A this point we need to be able to pivot the new Holiday/Nor-Holiday dummy variable column based on % of Sales Returned. This will allow you to have one column| devoted tothe % of Sales Returned during the Holiday (Janvary) month, and another column for the % of Sales Returned during the non-holiday months. To do s0, we need| to first duplicate the % of sles returned column, then we will pivot the Holiday/Non- Holiday dummy variable column based on the % of Sales Returned duplicate column, From the Power Query Euitor ribbon, click Add Column ifyou are not already there. ‘We will add a duplicate column of the % of Sales Returned column, Select that coh ‘umn, then click Duplicate column, Final PDF to printer 424 chapter 11 Pret Chaper Advanced Amazing Dilan’ Dat Pree Stes Reams ‘Once the duplicate column W created, we can pivot the Holay7Nom-Holiday co ‘uma, Fist you will need to click the Transform tab on the ribbon of the Power Query Esitor window. 6, Select the Holiday/Non-Holiday custom column, then click Pivot Column, Use the coF, ‘umn you just copied, % of Sales Returned ~ Copy as the values column. Click OK. a eee cia] = (Sie — ia ‘We will use these two new Holiday and non-Holiday columns to run a test to see ithe percentage of sales returned during the December and January holiday season i significantly higher than the rest ofthe yea. 17, Load the transformed data into Excel by navigating to the Home tab on the ribbon and selecting Close & Load. hore Power Query Editor ioe eine 3 — $3 [Advanced Editor a: ee. close Manages Source: Marae Ec! 206 Temay take a couple minutes for the data to load, 8, Once the date has loaded, navigate lo the Data Analysis Toolpak inthe Data tab in Final PDF to printer Chapter 11 Projet hap (Adan: Anabsing Dilan Daa Pre Sales Rens 42 Tor eivecions on Wow To aU Click Data Analysis To open the Analysis ‘Tools window. ‘Dome Slumpeve 8. Scroll to find the (Test: Two Sample Assuming Unequal Variances tool and click OK. ‘nai Toos 10, Inthe t-Test window, you will need to input your va ible ranges. For Variable 1 Range| select all ofthe values that correspond with the Holiday coluan. vo no: = ‘io ot I Cl eee ae te Ce Seeman i] aoeeeeee Ciceeaa! 11. Follow the same pattern for Variable 2 by selecting all ofthe data that correspond al on aLoniad as & Final PDF to printer 426 {Ghapter 11 Pret Char AdvoncedAnaing Din’ Dat Pret Sales Returns ea Vsceunve arg ee ian ie Chae apne: [os | Cutt options (Couout rane: @ new wenenet ne One wordoot 12. Ifyou selected labels (Holiday and Non Holiday) in addition to just the data, place @ check mark in the box next to Labels. 13. Click OK to run the hypothesis test. The output for the hypothesis test will appear on anew sheet in your Excel workbook. Inout ; Vraie tage: seiner) ‘arte 2 ange sisissrieo eputoptions CO buputranve ml © new worrsneet By: ] One wonno0t| Ql, Based on the pvalues (or the Mtatistic an critical values), ate the returns as percentage of sales in January greater, less than, or the same asthe returns as a percentage of sles forthe ret ofthe year? Q22. What can we conclude about returns? uestion 2.2: Is the Percentage of Sales Returned ignificantly Different in Arkansas Than the Rest of he Country? ‘ollowing similar steps that you completed in Question 2.1 above, determine ifthe percent ge of sales returned is significantly different in Arkansas, where Dillard’ is based, than th rest ofthe country, Final PDF to printer Chapter 11 Projet Chapter (Adan: Anatsing Dilan Data Pre Sales Rens 427 ‘Fist, you will need To create dummy’ variable colunins Tor “ART and “NomART=ollaw) te same steps that you did in steps 1-7 to create the Holiday and non-Holiday variable (Open the Power Query window by selecting Edit from the Query tab in the ribbon. Fro he Add Column tab, ereste a conditional column to separate AR from Non-AR states ‘ext, duplicate the % of Sales Returned column again. From the Transform tab, Pivot you yew custom column for AR/Non-AR - use the copy of % of Sales Returned as the values) ‘Your next step willbe to tun anew Lest, sila tothe steps you completed in steps 8-12. Q23. Using the pvalues (or the rstatstc and extical values) are the etwans as @ percentage of sales in Arkansas and January greater, less than, ‘the returns as a percentage of sales for the rest of the country? the same as Q24. What can we conclude about returns? (QUESTION SET 3: PREDICTIVE ANALYTICS juestion 3.1: By Looking at Line Charts for 2014 and 1015, Does the Average Percentage of Sales Returned in 2014 Seem to Be Predictive of Returns in 2015? Iter asesing how differen variables impact returns we have a beter ide of tow to el Ditand's prepare for etrns~both across states and forthe holiday season. We can ao ge kn idea of how much a previous yeas percentage of returned sles can help predic the ae a's To answer this question, we will create a Pvo(Table, ivotChart, and use slicers if we can improve our predictions by looking satebystate reste a PivotTable and a PivotChart to ompare 2014 and 2015 Returns 1. Open the data you transformed and built into spreadsheet Chapter! Dataset.xsx 2. Create a PvotTable from the dataset To view a comparison of how the average percentage of sales returned changed eact af, we want 10 view the years as columns, and see a row for each month's average percent f sales returned for ether yea Drag Month tothe Rows. Drag Year to columns. Drag % of Sales Returned to Values. ‘Change the aggregate for % of Sales from Sum to Average using the Value Field Settings To view ths data asa line chart, we need to inset a PivotChart. To do s0, click the ‘Analyze tab on the ribbon, underneath PivotTable tools (if you do not see this option, select one of the eels in your PivotTable to open the interactive ribbon). 48, Click PivotChart to see the different chart options. 1 Be fh & 28 tea| car sis errs Oe ts Lo 1s Preciet returned sales in future periods using preciesve anatyles Final PDF to printer 428 chapter 11 Pret Chap AdvncedAnazing Dilan’ Dat Pree Sates Reams Tange The defaul o Line and then cick OK, PESPORXBERSM =e Sure Mio Fe! 26 Q21. Based on the line chart, does 2014 seem to be useful in predicting 2015's per- centage of sales returned? 110, Now we can add a Slicer to interactively filter the PivotTable and PivotChart to see how the values changed by state each year. Click into the data of your PivotTable to rake the options for adding slicers available 11, Inthe Insert tab on the ribbon, select Slicer Lok bag) 1S Final PDF to printer Chapter 11 Project hap (Adan: Anabsing Dian Data Pre Sales Rens 429 ‘Select State and hen click OK- | Insert Stiers 7 x || L] sot sates returnees © | Ch non-ae Tar | | Dy Hotiday Ly Non-Hotieay CT 13. Filter first for AR (Arkansas). Try again o filter for UT (Utah). Q3:2. Based on these line chars, does it seem more beneficial to predict percentage of sales returned on a state-byatate basis or in aggregate form? Puestion 3.2: Using Regression, What Can We Predict for Returns as a Percentage of Sales Based on Historical Transactions? |, Because the line graphs seemed to suggest thatthe percentage of sales returned in 2014 will help predict the percentage of sales returned in 2015, we can run a regres sion to build a model tat will help stores predict the percentage of sales that wil be returned each month. First, we will ned to transform the data one more time. This {transformation requires removing several columns, so you may choose to create @ 430, chapter 11 Pret Chap Advanced Anazing Dilan’ Dat Pree Sates Returns uplcate Tile of your current chapter TT spreadsheet i you need to save your Progress fom Question Set 2 15, Return to the worksheet that contains the raw data, From this worksheet, you can ace ‘the Query tab in the ribbon and click Eait in order to open the Pawer Query too 16, We ultimately need to pivat the year column so that we have two separate columns for comparing 2014 and 2015, but before we can do that, we need to remove several col lumas. Select columns P, R. Holiday, Non-Ifoliday, Non-AR, and AR. and then select, Remove Columns from the ribbon, You can remove each column individvally, or ‘you can select multiple columns ata time by pressing “Crt” on your keyboard as you select the columns. Sette won FE [Bite Focnacenen~ oS SP Leow 17, Now you're ready to pivot the year column, Select the year column, and then click Pivot Column from the Transform tab, ZR meee nome vmoemmer- ba emery: aie cous + ce titty Rreratons [Freeecoea ype —Ghr Wate Pe FeN I icouenom mf Rename Feoreercoumep cenertoue Je Le tone nenavetouns(@rPiotes Conus" a [iz woe [RE xersaetcomes = \[a 2014 tm a6 ass75e2009 5 2x ia a aie 4 aul ta a acca? I an Te = ausise Q zu in ‘a aumecs 4] 2s] ian a az F sal ian a a Final PDF to printer Final PDF to printer Chapter 11° Project Chapter (dance Anan Dad Dota oP Sales Reres 34 I Select of Sales Returned as your Values, then cick OK. Pivot se meramas incom "ear tote neu cols. C= = 19. The lst step to prepare this data for analysis is to remove zeros and null values from your new 2014 and 2015 columns. Select the drop-lown next tothe column for 2014 and remove the checkmark nex to (nll) and 0, 1% monty [= [A sate = |.2 store [= 955 ane 205 _ aaa) 6 ee EL Sort Dending nae Ye GewFiter asssris i na aon os Ge 9 | aes 1 Tr orormenriaaiee susan oomesserseas25 aon 2 ontszsrnessnca onan 0. Do the same for the 2015 column, 21. Now your data is ready for Analysis. Click Close & Load from the Home tab to return to Excel. 2. To run a Regression Analysis, you need to have the Data Analysis Toolpak added in to Excel (see Statistics Appendix B for information on how to do s0). 3. Select Data Analysis from the Data tab inthe ribbon. ee ete 432 chapter 11 Projet Chaper Advanced: Anang Dilan’ Daa Pred Sales Rens rol To ind the Regression tool in te Analysis Tools window and click OK, 5. Because you willbe predicting 2015 values based on 2014s values, 2014's values are cour (X) variables and 2015's values are our (¥) variables. Enter the following informa tion in the Regression window (these input ranges should come from the original data ‘worksheet, not the PivotTable): ‘nase ects Fourie ‘ree ewe Samp for Mean Input X Range: Ths is the column containing the 2014 data Labels: Place a checkmark inthis box if you incuded the labels for 2014 and 2015 in ‘your selections for the ¥ and X ranges. Click OK, Q33, Looking at your regression output, was the relationship between 2014 and 2015 percentage of sales returned significant? How cen you tel? Q34. Brainstorm at least four other data items (e.g, economy, type of customer, lc.) that would be helpful in predicting future the next year's percentage of sales returned, Q25. Upon project completion of Question Sets 1, 2, and 3, wht have you learned from completing this analysis? Final PDF to printer

You might also like