<?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: Is it possible to plot a graph using a json column in SAS Visual Analytics? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-plot-a-graph-using-a-json-column-in-SAS-Visual/m-p/942362#M18308</link>
    <description>&lt;P&gt;I am not sure where JSON helps.&lt;/P&gt;
&lt;P&gt;You don't say &lt;STRONG&gt;why&lt;/STRONG&gt; the number of observations is important so hard to address any detail there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be that processing in a somewhat different order, such as getting a count of the common start/ end pairs before doing the expansion that caused the 35 million rows would be appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose you COUNT data by start end pairs and get a result similar to this:&lt;/P&gt;
&lt;PRE&gt;start end count
2012 2013 103
2012 2014 145
2012 2015 154
2012 2016 234
2013 2014 98
2013 2015 133
2013 2016 199
2014 2015 55
2014 2016 101
2015 2016 88&lt;/PRE&gt;
&lt;P&gt;When you transform that to get single year keep the count with it so it looks like:&lt;/P&gt;
&lt;PRE&gt;
Obs count year 
1 103 2012 
2 103 2013 
3 145 2012 
4 145 2013 
5 145 2014 
6 154 2012 
7 154 2013 
8 154 2014 
9 154 2015 
10 234 2012 
&lt;/PRE&gt;
&lt;P&gt;The&amp;nbsp; example data would have 30 rows of data. Which would still be much smaller than just transorming the 103 rows of 2012 to 2013.&lt;/P&gt;
&lt;P&gt;Summarize that data to total the count by the year and there are only 5 rows of data to actually plot with counts in the 622 to 1119 range (for my given example).&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 20:14:04 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-09-03T20:14:04Z</dc:date>
    <item>
      <title>Is it possible to plot a graph using a json column in SAS Visual Analytics?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-plot-a-graph-using-a-json-column-in-SAS-Visual/m-p/934260#M18108</link>
      <description>&lt;P&gt;I have a table with more than 3 million records. I need to plot a line graph with the number of records in each year, but I only have a start date and an end date. From this I calculate the interval of years between these dates. When I do this, my table grows to over 35 million rows.&lt;/P&gt;&lt;P&gt;I would like to keep the original number of lines, so I placed the ranges within a json in a new column, for example&lt;/P&gt;&lt;P&gt;+----+-------+---------------------------+&lt;BR /&gt;| ID&amp;nbsp; | IntervalYears |&lt;BR /&gt;+----+-------+---------------------------+&lt;BR /&gt;| 1 | {"IntervalYears": [2010, 2011, 2012, 2013]} |&lt;BR /&gt;| 2 | {"IntervalYears": [2012, 2013, 2014, 2015]} |&lt;BR /&gt;+----+-------+---------------------------+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I would like to know if it is possible to plot these quantities per year, but using this column in json, resulting in a graph like this, for example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bruna_SAS_0-1719841870749.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98042iCEB116E5A04A8601/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bruna_SAS_0-1719841870749.png" alt="Bruna_SAS_0-1719841870749.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 13:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-plot-a-graph-using-a-json-column-in-SAS-Visual/m-p/934260#M18108</guid>
      <dc:creator>Bruna_SAS</dc:creator>
      <dc:date>2024-07-01T13:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to plot a graph using a json column in SAS Visual Analytics?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-plot-a-graph-using-a-json-column-in-SAS-Visual/m-p/942273#M18305</link>
      <description>&lt;P&gt;One way I think might work is to create a new aggregated table containing year and count of number of observations.&lt;/P&gt;
&lt;P&gt;You might also add some dimensions if you filter on these in the report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 12:13:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-plot-a-graph-using-a-json-column-in-SAS-Visual/m-p/942273#M18305</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2024-09-03T12:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to plot a graph using a json column in SAS Visual Analytics?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-plot-a-graph-using-a-json-column-in-SAS-Visual/m-p/942362#M18308</link>
      <description>&lt;P&gt;I am not sure where JSON helps.&lt;/P&gt;
&lt;P&gt;You don't say &lt;STRONG&gt;why&lt;/STRONG&gt; the number of observations is important so hard to address any detail there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be that processing in a somewhat different order, such as getting a count of the common start/ end pairs before doing the expansion that caused the 35 million rows would be appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose you COUNT data by start end pairs and get a result similar to this:&lt;/P&gt;
&lt;PRE&gt;start end count
2012 2013 103
2012 2014 145
2012 2015 154
2012 2016 234
2013 2014 98
2013 2015 133
2013 2016 199
2014 2015 55
2014 2016 101
2015 2016 88&lt;/PRE&gt;
&lt;P&gt;When you transform that to get single year keep the count with it so it looks like:&lt;/P&gt;
&lt;PRE&gt;
Obs count year 
1 103 2012 
2 103 2013 
3 145 2012 
4 145 2013 
5 145 2014 
6 154 2012 
7 154 2013 
8 154 2014 
9 154 2015 
10 234 2012 
&lt;/PRE&gt;
&lt;P&gt;The&amp;nbsp; example data would have 30 rows of data. Which would still be much smaller than just transorming the 103 rows of 2012 to 2013.&lt;/P&gt;
&lt;P&gt;Summarize that data to total the count by the year and there are only 5 rows of data to actually plot with counts in the 622 to 1119 range (for my given example).&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 20:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-plot-a-graph-using-a-json-column-in-SAS-Visual/m-p/942362#M18308</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-09-03T20:14:04Z</dc:date>
    </item>
  </channel>
</rss>

