<?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: How do I create an interactive (user selects what is displayed) line chart? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-an-interactive-user-selects-what-is-displayed/m-p/298137#M5351</link>
    <description>&lt;P&gt;Three steps (haven't checked syntax):&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Create a Paramater called Selected Pageviews&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Create a new&amp;nbsp;calculated measure called Pageviews with a IF THEN ELSE statement that checks the value of the paramater.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IF 'Selected Pageviews'p = 'Website A' THEN 'Website A'n&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELSE WHEN 'Selected_Pageviews'p = 'Website B' THEN 'Website B'n&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE RETURN 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; This is the tricky part.&amp;nbsp; You need to create a calculated category that will contain 2 values (Website A and Website B) so that a dropdown or button bar selector can be populated for the paramater selection.&amp;nbsp; I try to find a category in the data that I know will not every be filtered out completly and assign the values to a group.&amp;nbsp; Maybe use&amp;nbsp;a Custom Category instead of a calculated category will work best.&amp;nbsp; Once that's created then assign the paramater to the control (dropdown or button bar) and use the new Pageview measure on the line chart.&amp;nbsp; Don't use the Website A/B measures anymore on the visualizations.&amp;nbsp;&amp;nbsp; When you change the button bar or dropdown the line chart should change.&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;</description>
    <pubDate>Tue, 13 Sep 2016 20:06:57 GMT</pubDate>
    <dc:creator>JBS_SAS</dc:creator>
    <dc:date>2016-09-13T20:06:57Z</dc:date>
    <item>
      <title>How do I create an interactive (user selects what is displayed) line chart?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-an-interactive-user-selects-what-is-displayed/m-p/298107#M5350</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a line chart in which the user can select which and how many lines are graphed. For simplicity, let's say I have two lines - 1. the number of pageviews&amp;nbsp;to website A each month and 2. the number of pageviews&amp;nbsp;to website B each month. The X axis is time (months) and the y axis is number pageviews. I want users fo the report to be able to select just the information for website A, just website B, or both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My source data looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Month&lt;/U&gt; &amp;nbsp; &amp;nbsp;&lt;U&gt;Website A&lt;/U&gt; &amp;nbsp; &amp;nbsp;&lt;U&gt;Website B&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Jan &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20&lt;/P&gt;&lt;P&gt;Feb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25&lt;/P&gt;&lt;P&gt;Mar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried just adding a drop-down box to the line chart, but it seems I have to add a single category variable (ex. month), so that wouldn't work since I would want the two numeric variables added (i.e. Website A and Website B).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried adding filters and an interaction. I tried making Website A and Website B filters, but it seems I can't add interactions to line charts. But I also tried this same concept but with a bar chart, and I couldn't seem to create it that way either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS VA Cloud (a free trial).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? What am I missing? Does it just have to do with how my data is structured?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 17:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-an-interactive-user-selects-what-is-displayed/m-p/298107#M5350</guid>
      <dc:creator>acrosb</dc:creator>
      <dc:date>2016-09-13T17:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an interactive (user selects what is displayed) line chart?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-an-interactive-user-selects-what-is-displayed/m-p/298137#M5351</link>
      <description>&lt;P&gt;Three steps (haven't checked syntax):&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Create a Paramater called Selected Pageviews&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Create a new&amp;nbsp;calculated measure called Pageviews with a IF THEN ELSE statement that checks the value of the paramater.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IF 'Selected Pageviews'p = 'Website A' THEN 'Website A'n&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELSE WHEN 'Selected_Pageviews'p = 'Website B' THEN 'Website B'n&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE RETURN 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; This is the tricky part.&amp;nbsp; You need to create a calculated category that will contain 2 values (Website A and Website B) so that a dropdown or button bar selector can be populated for the paramater selection.&amp;nbsp; I try to find a category in the data that I know will not every be filtered out completly and assign the values to a group.&amp;nbsp; Maybe use&amp;nbsp;a Custom Category instead of a calculated category will work best.&amp;nbsp; Once that's created then assign the paramater to the control (dropdown or button bar) and use the new Pageview measure on the line chart.&amp;nbsp; Don't use the Website A/B measures anymore on the visualizations.&amp;nbsp;&amp;nbsp; When you change the button bar or dropdown the line chart should change.&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;</description>
      <pubDate>Tue, 13 Sep 2016 20:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-create-an-interactive-user-selects-what-is-displayed/m-p/298137#M5351</guid>
      <dc:creator>JBS_SAS</dc:creator>
      <dc:date>2016-09-13T20:06:57Z</dc:date>
    </item>
  </channel>
</rss>

