<?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 SAS VA | calculated item in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-calculated-item/m-p/945754#M18374</link>
    <description>&lt;P&gt;I have a table where student id and their education level as mentioned below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="182"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="88.0312px" height="30px"&gt;Student_id&lt;/TD&gt;
&lt;TD width="124.281px" height="30px"&gt;Education_level&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="88.0312px" height="30px"&gt;112&lt;/TD&gt;
&lt;TD width="124.281px" height="30px"&gt;10th&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="88.0312px" height="30px"&gt;114&lt;/TD&gt;
&lt;TD width="124.281px" height="30px"&gt;12th&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="88.0312px" height="30px"&gt;224&lt;/TD&gt;
&lt;TD width="124.281px" height="30px"&gt;phd&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;we need a report (SAS Visual Analytics) where a calculated item or (any other workaround) works as when we insert a student id then it returns the education level and based on that education level we need all respective student id which are equal to that education.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 05:37:31 GMT</pubDate>
    <dc:creator>SurajChand</dc:creator>
    <dc:date>2024-10-01T05:37:31Z</dc:date>
    <item>
      <title>SAS VA | calculated item</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-calculated-item/m-p/945754#M18374</link>
      <description>&lt;P&gt;I have a table where student id and their education level as mentioned below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="182"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="88.0312px" height="30px"&gt;Student_id&lt;/TD&gt;
&lt;TD width="124.281px" height="30px"&gt;Education_level&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="88.0312px" height="30px"&gt;112&lt;/TD&gt;
&lt;TD width="124.281px" height="30px"&gt;10th&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="88.0312px" height="30px"&gt;114&lt;/TD&gt;
&lt;TD width="124.281px" height="30px"&gt;12th&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="88.0312px" height="30px"&gt;224&lt;/TD&gt;
&lt;TD width="124.281px" height="30px"&gt;phd&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;we need a report (SAS Visual Analytics) where a calculated item or (any other workaround) works as when we insert a student id then it returns the education level and based on that education level we need all respective student id which are equal to that education.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 05:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-calculated-item/m-p/945754#M18374</guid>
      <dc:creator>SurajChand</dc:creator>
      <dc:date>2024-10-01T05:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA | calculated item</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-calculated-item/m-p/945811#M18375</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you tell us a little more about what you want to do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, you want to have a control where the selected student ID will select all students that have the same education level as the selected student.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know that there's an easy way to do this directly, but a workaround is possible by combining the values of the two columns using the Concatenate function in a calculated item to give you something like "112 | 10th" as the value. Then you could store that in a parameter and make an advanced filter based on the second part of the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example using the SASHELP.CLASS dataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="class2.png" style="width: 686px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100781iCAAE3BA69881409A/image-size/large?v=v2&amp;amp;px=999" role="button" title="class2.png" alt="class2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I concatenated the Name and Gender columns in an expression like this:&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;Concatenate(Concatenate(Name, ' | '), Gender)&lt;/PRE&gt;
&lt;SPAN&gt;The syntax is slightly different in the latest versions of VA, but this should give you the general idea.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I assigned a parameter to the drop-down list control to store this value.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;In the list table, I made an advanced filter,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;NOT(IsSet('Name and Gender Parameter'p)) OR (GetWord('Name and Gender Parameter'p, 2) = Gender)&lt;/PRE&gt;
&lt;SPAN&gt;This will show all values if nothing is selected in the drop-down, or else filter on the part of the selected value that comes after the "|" character.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Some extra work would be necessary if you want to select all students with the selected education level &lt;STRONG&gt;or less&lt;/STRONG&gt;, but it should be possible with some tedious IF statements.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;Let us know if that helps, or if what you wanted was something else.&lt;/DIV&gt;
&lt;DIV&gt;Sam&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-calculated-item/m-p/945811#M18375</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2024-10-01T18:14:51Z</dc:date>
    </item>
  </channel>
</rss>

