Analyze Data - Help with Structuring Data to Improve Analysis

%3CLINGO-SUB%20id%3D%22lingo-sub-2520671%22%20slang%3D%22en-US%22%3EAnalyze%20Data%20-%20Help%20with%20Structuring%20Data%20to%20Improve%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2520671%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20table%20of%20library%20book%20circulation%20figures%20that%20I%20have%20put%20into%20a%20pivot%20table.%20The%20table%20shows%20a%20certain%20class%20of%20items%20(fiction%2C%20non%20fiction%2C%20etc.)%20and%20the%20circulation%20numbers%20for%20each%20class%20across%20a%20span%20of%20several%20years.%20I'd%20like%20to%20use%20the%20Analyze%20Data%20tool%20to%20help%20me%20answer%20some%20questions%20for%20a%20report%20I'm%20writing%2C%20but%20I%20can't%20seem%20to%20format%20the%20questions%20properly.%26nbsp%3B%20I'd%20like%20for%20the%20tool%20to%20show%20me%20the%20total%20of%20each%20class%20across%20each%20year%20in%20a%20graph%2C%20perhaps%20a%20stacked%20bar%20graph%2C%20or%20line%20graph%2C%20to%20indicate%20trends.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20best%20way%20to%20do%20this%3F%20Should%20I%20change%20the%20labels%20on%20my%20tables%20to%20get%20better%20answers%20from%20the%20tool%3F%20Thanks%20in%20advance%20for%20%3CSTRONG%3Eany%3C%2FSTRONG%3E%20help.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22CleanShot%202021-07-06%20at%2011.39.35.jpeg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F293828i3B8FD6E442CB4735%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CleanShot%202021-07-06%20at%2011.39.35.jpeg%22%20alt%3D%22CleanShot%202021-07-06%20at%2011.39.35.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2520671%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%20on%20Mac%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2521174%22%20slang%3D%22en-US%22%3ERe%3A%20Analyze%20Data%20-%20Help%20with%20Structuring%20Data%20to%20Improve%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2521174%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1096991%22%20target%3D%22_blank%22%3E%40skeskali%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%20for%20sending%20a%20question%20about%20the%20Analyze%20Data%20feature.%20Analyze%20Data%20can%E2%80%99t%20currently%20create%20suggestions%20based%20on%20PivotTables%2C%20so%20you%E2%80%99ll%20want%20to%20make%20sure%20you%20are%20running%20it%20on%20your%20original%20data.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20you%20have%20a%20column%20for%20each%20of%20the%20years%2C%20you%E2%80%99ll%20want%20to%20mention%20each%20one%20specifically%2C%20for%20example%3A%202017%2C%202018%2C%202019%20and%202020%20by%20item%20class%20as%20column%20chart%20(or%20a%20different%20chart%20type).%20Note%20that%20it's%20easier%20to%20ask%20questions%20over%20time%20when%20you%20have%20a%20single%20column%20with%20multiple%20date%20values.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20this%20doesn't%20work%2C%20you%20might%20want%20to%20make%20sure%20your%20data%20is%20formatted%20as%20a%20table.%20Please%20select%20all%20of%20it%20and%20click%20on%20Format%20as%20Table%20in%20the%20Home%20tab%20and%20then%20try%20Analyze%20Data%20again.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ELet%20us%20know%20if%20this%20doesn%E2%80%99t%20solve%20your%20issue.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%20for%20your%20feedback%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EMar%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2526245%22%20slang%3D%22en-US%22%3ERe%3A%20Analyze%20Data%20-%20Help%20with%20Structuring%20Data%20to%20Improve%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2526245%22%20slang%3D%22en-US%22%3E%3CP%3ESorry%20that%20didn't%20work.%20I%20wasn't%20suggesting%20you%20changed%20the%20structure%20of%20your%20data%2C%20just%20that%20the%20scenarios%20for%20which%20we%20have%20optimized%20the%20feature%20so%20far%20typically%20have%20dates%20grouped%20in%20columns.%20We%20continue%20to%20iterate%20and%20improve%20the%20quality%20of%20the%20feature%20and%20we'll%20incorporate%20your%20feedback%20as%20we%20do%20so.%3C%2FP%3E%0A%3CP%3EThanks%26nbsp%3Bagain%20for%20reaching%20out%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1096991%22%20target%3D%22_blank%22%3E%40skeskali%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMar%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2530717%22%20slang%3D%22en-US%22%3ERe%3A%20Analyze%20Data%20-%20Help%20with%20Structuring%20Data%20to%20Improve%20Analysis%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2530717%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1096991%22%20target%3D%22_blank%22%3E%40skeskali%3C%2FA%3E%26nbsp%3BWe%20currently%20don't%20have%20documentation%20of%20the%20sort%20you%20describe.%20Based%20on%20the%20structure%20of%20the%20data%2C%20we%20aren't%20able%20to%20understand%20%22for%20each%20year%22.%20I%20think%20that%20asking%3A%20%22top%20istat%20based%20on%20year%202017%20for%20each%20location%22%20would%20give%20you%20what%20you%20want%2C%20but%20you'd%20need%20to%20ask%20the%20same%20question%20for%20each%20year.%3C%2FP%3E%0A%3CP%3EWe'll%20explore%20how%20to%20improve%20this%20scenario.%3C%2FP%3E%0A%3CP%3EBest%2C%3C%2FP%3E%0A%3CP%3EMar%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a table of library book circulation figures that I have put into a pivot table. The table shows a certain class of items (fiction, non fiction, etc.) and the circulation numbers for each class across a span of several years. I'd like to use the Analyze Data tool to help me answer some questions for a report I'm writing, but I can't seem to format the questions properly.  I'd like for the tool to show me the total of each class across each year in a graph, perhaps a stacked bar graph, or line graph, to indicate trends. 

 

What is the best way to do this? Should I change the labels on my tables to get better answers from the tool? Thanks in advance for any help. 

 CleanShot 2021-07-06 at 11.39.35.jpeg

7 Replies

@skeskali 

Thanks for sending a question about the Analyze Data feature. Analyze Data can’t currently create suggestions based on PivotTables, so you’ll want to make sure you are running it on your original data.

 

If you have a column for each of the years, you’ll want to mention each one specifically, for example: 2017, 2018, 2019 and 2020 by item class as column chart (or a different chart type). Note that it's easier to ask questions over time when you have a single column with multiple date values.

 

If this doesn't work, you might want to make sure your data is formatted as a table. Please select all of it and click on Format as Table in the Home tab and then try Analyze Data again.

 

Let us know if this doesn’t solve your issue.

 

Thanks for your feedback,

 

Mar

Thanks for your answer, @Mar Gines Marin. I also have the data formatted as a table, but still couldn't get the answers I wanted out of the analyze data tool. This table has something like 15,000 lines of data, so I'm not exactly sure how I'd combine each year into one column. How does that work?

Sorry that didn't work. I wasn't suggesting you changed the structure of your data, just that the scenarios for which we have optimized the feature so far typically have dates grouped in columns. We continue to iterate and improve the quality of the feature and we'll incorporate your feedback as we do so.

Thanks again for reaching out, @skeskali 

Mar

@Mar Gines Marin  My data is structured in a regular table in another worksheet (see screenshot). This is not a pivot table. I guess what I was looking for was suggestions or specific syntax that would help me get the answers I needed from such a large data set. My brain thinks in natural language, not Excel, so I think that asking a table like this one "Show me the top istat for each location for each year" should work, but it doesn't. Is there somewhere I might learn more about the proper syntax structure and how I might get more out of this tool? 

CleanShot 2021-07-07 at 18.33.32.png

@skeskali We currently don't have documentation of the sort you describe. Based on the structure of the data, we aren't able to understand "for each year". I think that asking: "top istat based on year 2017 for each location" would give you what you want, but you'd need to ask the same question for each year.

We'll explore how to improve this scenario.

Best,

Mar

 

Hi @skeskali,

You stated: "I'd like for the tool to show me the total of each class across each year in a graph, perhaps a stacked bar graph, or line graph, to indicate trends."

 

Just for the fun of it, and the only thing you have to change is switch the time periods and the category in your pivot table.  Have you tried putting the time periods in the ROWS, and the category in the Columns then make a graph out of it? Just wondering if you have tried that approach. Then a different graph for the location, the same approach or maybe the first value in the column would be the location, then category or probably even better, in the rows the first value would be the year, then location and in the column would be the categories. (recommended)

 

That approach might yield a graph chart that looks something like this:

Yea_So_0-1625945055406.png

 

cheers

Hi @skeskali 

 

Hope attached visualization (Cross Tab or Hierarchical Bar Chart) will help you in analyzing data. 

 

No Code Data Visualization add-in used to create this chart. 

 

You can check here for Microsoft Excel & Office 365.

 

And if you are comfortable with Google Sheets, you can find here.

 

Thanks

 

Qaiser_j_0-1631632543972.png