<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: List Table Sparkline vs Line Chart in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249428#M3322</link>
    <description>&lt;P&gt;Hi Mark,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My pleasure... was fun to explore!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Agree, some clarity on the sparkline for different time scales would be good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2016 12:13:08 GMT</pubDate>
    <dc:creator>MichelleHomes</dc:creator>
    <dc:date>2016-02-11T12:13:08Z</dc:date>
    <item>
      <title>List Table Sparkline vs Line Chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249380#M3316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been using sparklines in a list table in Visual Analytics 7.3 but I've noticed that they don't seem to tell entirely the same story as a line chart of the same data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The line chart and sparkline below have been drawn using exactly the same data (which is attached in the&amp;nbsp;text file in CSV form - the website doesn't allow uploading files with a .csv extension - &amp;nbsp;if anyone would like to try and replicate this):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="sparkline_vs_line_chart.jpg" alt="sparkline_vs_line_chart.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/1837iA5ED9A2313397CEE/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see that the line chart shows a slight decline in the rate of increase towards the end of the line, however this gets hugely exagerated in the sparkline.&amp;nbsp; I'm guessing this is something to do with some smoothing that is going on for the sparkline, however the VA user guide doesn't mention anything about the methodology behind the sparkline.&amp;nbsp; A manager would likely have a small heart attack looking at the sparkline, so it's pretty much unusable in this form.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also cannot work out what the numbers in the sparkline data tip represent.&amp;nbsp; It can be clearly seen from the line chart that the measure never exceeds much over 2000 so I am stumped where 1308, 62198, 18034 come from.&amp;nbsp; The aggregration in use for the measure is SUM, and as far as I can work out these numbers don't represent any form of that aggregation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have any ideas what might be going on before I go to Tech Support?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 08:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249380#M3316</guid>
      <dc:creator>MarkJones</dc:creator>
      <dc:date>2016-02-11T08:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: List Table Sparkline vs Line Chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249411#M3319</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You "sparked" my interest &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems the sparkline figures are based on monthly sum aggregation. From your sparkline_data.csv file the sum aggregation of the following months form the figures 1308, 62198, 18034.&lt;/P&gt;
&lt;P&gt;1st month - Jan-13 - sum of Number of members is 1308&lt;/P&gt;
&lt;P&gt;2nd last month - Jan-16 - sum of Number of members is 62198&lt;/P&gt;
&lt;P&gt;last month (Final) - Feb-16 - sum of Number of members is 18034&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect that the drop in the sparkline is because the month of February is incomplete and it may be drawing the line to the average of February which is 2004. I wonder if you change your aggregation to average it becomes more meaningful with monthly averages being reported in the tool tip and the spark line for February being as expected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249411#M3319</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2016-02-11T10:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: List Table Sparkline vs Line Chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249418#M3320</link>
      <description>&lt;P&gt;Hi Michelle,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are a genius&amp;nbsp;(at puns too &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;) &amp;nbsp;- thank you very much!&amp;nbsp; I had started&amp;nbsp;tearing my hair out over that one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm going to suggest to SAS that they mention this&amp;nbsp;in the user documentation as it would have taken me ages to figure out that it was aggregating on a monthly basis, to me at least this was far from obvious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Changing the aggregation to average certainly improves things, but the data tip is still confusing until you specify&amp;nbsp;a somewhat long-winded&amp;nbsp;name for the measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="average_sparkline.jpg" alt="average_sparkline.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/1840iBF2F09C8AD41D988/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also wonder if the basis for the aggregation depends on the range of the time axis.&amp;nbsp;&amp;nbsp;Logically it would depend on whether a date, time or datetime item is used, but what if the range of my data was months or even more years.&amp;nbsp; Something to investigate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either way sparklines just became a bit more complex to explain to Report Designers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again Michelle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 11:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249418#M3320</guid>
      <dc:creator>MarkJones</dc:creator>
      <dc:date>2016-02-11T11:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: List Table Sparkline vs Line Chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249428#M3322</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My pleasure... was fun to explore!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Agree, some clarity on the sparkline for different time scales would be good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 12:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249428#M3322</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2016-02-11T12:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: List Table Sparkline vs Line Chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249432#M3323</link>
      <description>&lt;P&gt;I have added this suggestion to the SASware ballot, please feel free to vote it up everyone!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/Visual-Analytics-List-Tables-Sparkline-documentation/idi-p/249431" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/Visual-Analytics-List-Tables-Sparkline-documentation/idi-p/249431&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 12:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249432#M3323</guid>
      <dc:creator>MarkJones</dc:creator>
      <dc:date>2016-02-11T12:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: List Table Sparkline vs Line Chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249433#M3324</link>
      <description>&lt;P&gt;Good idea Mark in adding it to the SASware Ballot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've placed my vote too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 12:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249433#M3324</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2016-02-11T12:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: List Table Sparkline vs Line Chart</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249549#M3326</link>
      <description>&lt;P&gt;A further follow up to this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The eagle-eyed may spot that my sparkline using averages, whilst looking better the figures in the data tip still did not tally with the line chart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The line showed figures around 2000 for February 2016 whereas the line chart says the current average is just 334:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="average_sparkline.jpg" alt="average_sparkline.jpg" src="https://communities.sas.com/t5/image/serverpage/image-id/1851i875A5A7F02E7415D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once I spotted this even my mental arithmetic is good enough to know that (9 * ~ 2000) / 9 is not equal to 334!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I eventually figured out what is going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The source data I provided earlier wasn't quite complete, it was aggregated up to the Gym ID and date&amp;nbsp;level which was all I needed to illustrate my question.&amp;nbsp; My full data set (attached) is finer grained than this, including a couple of other categories namely member type (3 levels) and gender (2 levels) so rather than there being one record per date there are actually 6 records per date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My mistake was thinking that when I used this fine grained data at a higher level of aggregation (Gym ID / month&amp;nbsp;rather than Gym ID / member type / gender / month)&amp;nbsp;that the average aggregation would take this into account rolling up both the numerator and the denominator to this level, but it does not.&amp;nbsp; The denominator is always the number of non-missing values,&amp;nbsp;so&amp;nbsp;for 1st - 9th February there were a total of 54 observations (9 dates * 3 member types &amp;nbsp;* 2 genders) so the average was calculated as the sum of the measure&amp;nbsp;divided by&amp;nbsp;54, instead of the sum divided by 9 as I had wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In most situations once this is understood it's not a big problem, you'd just need to add a new Aggregated Measure to give the average of the measure _ByGroup_.&amp;nbsp; Unfortunately this is not one of those situations as you cannot use an Aggregated Measure in a sparkline.&amp;nbsp; As such the only solution I can see to my problem is to have a seperate LASR table (or maybe one artfully created LASR table) containing data for each grain that&amp;nbsp;I want to present the sparkline at.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps some of you avoid the same trap I nearly fell into.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 21:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/List-Table-Sparkline-vs-Line-Chart/m-p/249549#M3326</guid>
      <dc:creator>MarkJones</dc:creator>
      <dc:date>2016-02-11T21:05:50Z</dc:date>
    </item>
  </channel>
</rss>

