<?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: Need help creating a new column with text (SAS Visual Analytics 8.5) in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Need-help-creating-a-new-column-with-text-SAS-Visual-Analytics-8/m-p/657647#M13871</link>
    <description>&lt;P&gt;Hi Barry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad you were able to get it working. If you have more values that you need to deal with, you will find that the IN condition is useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach is to create a custom category, which will be more of a "click and drag" experience and less a coding one. Each way has its pros and cons. If you are creating more than a boolean/binary assignment, the nested IF statements in the calculated item approach can get tedious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2020 18:39:32 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2020-06-11T18:39:32Z</dc:date>
    <item>
      <title>Need help creating a new column with text (SAS Visual Analytics 8.5)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Need-help-creating-a-new-column-with-text-SAS-Visual-Analytics-8/m-p/656473#M13869</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm on version 8.5 V.03.05&lt;BR /&gt;&lt;BR /&gt;I'm trying to create a new column that denotes whether or not a DEVICE is classified as an 'Instrument'.&amp;nbsp; I'm struggling to get the syntax correct.&amp;nbsp; This is what I have:&lt;BR /&gt;&lt;BR /&gt;Step 1:&amp;nbsp; Select Data&lt;BR /&gt;Step 2:&amp;nbsp; Select + new data Item&amp;nbsp;&lt;BR /&gt;Step 3:&amp;nbsp; Select Calculated Item&lt;BR /&gt;Step 4:&amp;nbsp; Write script&lt;BR /&gt;&lt;BR /&gt;'DEVICE'n contains 'Instrument'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get an error message:&lt;BR /&gt;&lt;BR /&gt;X&amp;nbsp; Type mismatch: expected type at this location is Character, type of item being applied is Boolean&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 16:37:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Need-help-creating-a-new-column-with-text-SAS-Visual-Analytics-8/m-p/656473#M13869</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2020-06-10T16:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help creating a new column with text (SAS Visual Analytics 8.5)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Need-help-creating-a-new-column-with-text-SAS-Visual-Analytics-8/m-p/656559#M13870</link>
      <description>I think I figured it out:&lt;BR /&gt;&lt;BR /&gt;IF ( 'DEVICE'n = 'Instrument' )&lt;BR /&gt;RETURN 1&lt;BR /&gt;ELSE 0</description>
      <pubDate>Wed, 10 Jun 2020 20:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Need-help-creating-a-new-column-with-text-SAS-Visual-Analytics-8/m-p/656559#M13870</guid>
      <dc:creator>BarryP</dc:creator>
      <dc:date>2020-06-10T20:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help creating a new column with text (SAS Visual Analytics 8.5)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Need-help-creating-a-new-column-with-text-SAS-Visual-Analytics-8/m-p/657647#M13871</link>
      <description>&lt;P&gt;Hi Barry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad you were able to get it working. If you have more values that you need to deal with, you will find that the IN condition is useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach is to create a custom category, which will be more of a "click and drag" experience and less a coding one. Each way has its pros and cons. If you are creating more than a boolean/binary assignment, the nested IF statements in the calculated item approach can get tedious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 18:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Need-help-creating-a-new-column-with-text-SAS-Visual-Analytics-8/m-p/657647#M13871</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-06-11T18:39:32Z</dc:date>
    </item>
  </channel>
</rss>

