<?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: Create a custom category in SAS VA using 2 different source variables? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/554678#M12359</link>
    <description>&lt;P&gt;This was successful.&amp;nbsp; Thanks again for the help!&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2019 12:37:42 GMT</pubDate>
    <dc:creator>asdfasdfasdfads</dc:creator>
    <dc:date>2019-04-29T12:37:42Z</dc:date>
    <item>
      <title>Create a custom category in SAS VA using 2 different source variables?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/553671#M12335</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a custom category in SAS VA (version 7.4, hotfix 08), but my initial dataset (which comes in from a process and can't be changed before it hits VA) has the information I need in two different places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data set contains 2 variables:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variable 1:&amp;nbsp; Values:&amp;nbsp; A, B&lt;/P&gt;&lt;P&gt;Variable 2:&amp;nbsp; Values:&amp;nbsp; C, D, E, F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create a custom category, Variable 3, which takes on these three following values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;X - when the value from variable 1 is A&lt;/P&gt;&lt;P&gt;Y - when the value from variable 1 is B AND variable 2 is C&lt;/P&gt;&lt;P&gt;Z - when the value from variable 1 is B AND value of variable 2 is NOT C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible somehow?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I had to use a hierarchy of some sort, could that do the trick?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 15:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/553671#M12335</guid>
      <dc:creator>asdfasdfasdfads</dc:creator>
      <dc:date>2019-04-24T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom category in SAS VA using 2 different source variables?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/553743#M12336</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should be possible as a calculated item rather than a custom category.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would use nested IF/ELSE statements. Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;IF ( 'Origin'n In ('Asia') )
RETURN 'X'
ELSE ( 
  IF ( ( 'Origin'n = 'Europe' ) AND ( 'Type'n NotIn ('Hybrid') ) )
  RETURN 'Y'
  ELSE 'Z' )&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Apr 2019 18:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/553743#M12336</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-04-24T18:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom category in SAS VA using 2 different source variables?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/553788#M12338</link>
      <description>Thank you! I’ll give this a try.</description>
      <pubDate>Wed, 24 Apr 2019 20:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/553788#M12338</guid>
      <dc:creator>asdfasdfasdfads</dc:creator>
      <dc:date>2019-04-24T20:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom category in SAS VA using 2 different source variables?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/554678#M12359</link>
      <description>&lt;P&gt;This was successful.&amp;nbsp; Thanks again for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 12:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Create-a-custom-category-in-SAS-VA-using-2-different-source/m-p/554678#M12359</guid>
      <dc:creator>asdfasdfasdfads</dc:creator>
      <dc:date>2019-04-29T12:37:42Z</dc:date>
    </item>
  </channel>
</rss>

