<?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 select a variable dynamically in VA? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820051#M16183</link>
    <description>&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the tips. This solved half of my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The content of the different columns can be displayed using this formula, but the column header is not dynamic still. right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cokey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 15:40:14 GMT</pubDate>
    <dc:creator>cokeyng</dc:creator>
    <dc:date>2022-06-23T15:40:14Z</dc:date>
    <item>
      <title>Is it possible to select a variable dynamically in VA?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820026#M16180</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to select variables or columns to include in an object like list table or crosstab? For example, I have a data set like this.&lt;/P&gt;&lt;P&gt;Attribute Name&amp;nbsp; &amp;nbsp; Station&amp;nbsp; &amp;nbsp; Size&amp;nbsp; &amp;nbsp; Region&amp;nbsp; &amp;nbsp; &amp;nbsp;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; Size_0_15&amp;nbsp; &amp;nbsp;Size_16_40&lt;/P&gt;&lt;P&gt;Salaries&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0_15&amp;nbsp; &amp;nbsp;Region A&amp;nbsp; &amp;nbsp;150000&amp;nbsp; 167580&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 850789&lt;/P&gt;&lt;P&gt;Salaries&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16_40 Region B&amp;nbsp; &amp;nbsp;760785&amp;nbsp; 167580&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 850789&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I filter the report with Station = A, I want the column Size_0_15 is displayed next to the Value, like:&lt;/P&gt;&lt;P&gt;Attribute Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Station A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size_0_15&lt;/P&gt;&lt;P&gt;Salaries&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 150000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;167580&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I filter it with Station = B, I want the column&amp;nbsp; &amp;nbsp;Size_16_40 instead, like:&lt;/P&gt;&lt;P&gt;Attribute Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Station B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size_16_40&lt;/P&gt;&lt;P&gt;Salaries&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 760785&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;850789&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cokey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 14:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820026#M16180</guid>
      <dc:creator>cokeyng</dc:creator>
      <dc:date>2022-06-23T14:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to select a variable dynamically in VA?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820045#M16182</link>
      <description>&lt;P&gt;You can do this by using a calculated data item and a parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume that you have a button bar or other filter control object that selects between Station A and Station B?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you create a parameter and assign it to the control, then you can use the parameter value in your calculated item. The expression might look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;IF ( 'Parameter 1'p = 'Station A' )
  RETURN 'Size_0_15'n
  ELSE IF ( 'Parameter 1'p = 'Station B' )
    RETURN 'Size_16_40'n
ELSE ''&lt;/PRE&gt;
&lt;P&gt;Now you can assign this calculated item to your objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 15:17:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820045#M16182</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-06-23T15:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to select a variable dynamically in VA?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820051#M16183</link>
      <description>&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the tips. This solved half of my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The content of the different columns can be displayed using this formula, but the column header is not dynamic still. right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cokey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 15:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820051#M16183</guid>
      <dc:creator>cokeyng</dc:creator>
      <dc:date>2022-06-23T15:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to select a variable dynamically in VA?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820080#M16184</link>
      <description>The column label will always be the same, so you would need to choose a name that makes sense for both of the source columns. Maybe just "Size" here?&lt;BR /&gt;&lt;BR /&gt;If the label of the selected column is important to your viewers, you could add a text object to provide an explanation:&lt;BR /&gt;&lt;BR /&gt;"For Station A, sizes 0-15 are displayed. For Station B, sizes 16-40 are displayed."&lt;BR /&gt;&lt;BR /&gt;Would that make sense?</description>
      <pubDate>Thu, 23 Jun 2022 17:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Is-it-possible-to-select-a-variable-dynamically-in-VA/m-p/820080#M16184</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-06-23T17:01:58Z</dc:date>
    </item>
  </channel>
</rss>

