<?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 String with Parameter comparision in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/String-with-Parameter-comparision/m-p/827497#M16315</link>
    <description>&lt;P&gt;&amp;nbsp;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a report that contains data for many companies, and I would like to add filter on the company. So I added drop-down list to my report with company values and assigned CompanyParameter to this list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I would like to show only exact values, I mean do something like this:&lt;/P&gt;
&lt;P&gt;if company = 'CompanyParameter'p then show only records for CompanyParameter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately when building the filter, I can't find 'equality' operator, I can use for example &lt;EM&gt;"Contains":&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;if company Contains 'CompanParameter'p then show only records for CompanyParameter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here comes the main issue. Let's assume that I have two companies: ABC and ABCD. Because I have 'contains' operator, then when I select ABCD company the records for ABC will be also presented (because 'ABCD' contains 'ABC').&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how should I resolve this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Filip&lt;/P&gt;</description>
    <pubDate>Sun, 07 Aug 2022 13:56:02 GMT</pubDate>
    <dc:creator>filippo_kow</dc:creator>
    <dc:date>2022-08-07T13:56:02Z</dc:date>
    <item>
      <title>String with Parameter comparision</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/String-with-Parameter-comparision/m-p/827497#M16315</link>
      <description>&lt;P&gt;&amp;nbsp;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a report that contains data for many companies, and I would like to add filter on the company. So I added drop-down list to my report with company values and assigned CompanyParameter to this list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I would like to show only exact values, I mean do something like this:&lt;/P&gt;
&lt;P&gt;if company = 'CompanyParameter'p then show only records for CompanyParameter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately when building the filter, I can't find 'equality' operator, I can use for example &lt;EM&gt;"Contains":&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;if company Contains 'CompanParameter'p then show only records for CompanyParameter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here comes the main issue. Let's assume that I have two companies: ABC and ABCD. Because I have 'contains' operator, then when I select ABCD company the records for ABC will be also presented (because 'ABCD' contains 'ABC').&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how should I resolve this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Filip&lt;/P&gt;</description>
      <pubDate>Sun, 07 Aug 2022 13:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/String-with-Parameter-comparision/m-p/827497#M16315</guid>
      <dc:creator>filippo_kow</dc:creator>
      <dc:date>2022-08-07T13:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: String with Parameter comparision</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/String-with-Parameter-comparision/m-p/827629#M16318</link>
      <description>&lt;P&gt;Hello Filip,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the "=" operator for both numeric and character values. It can be a little confusing because the hint text in the expression builder says "number".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( 'car'n = 'Toyota' )&lt;BR /&gt;RETURN 1&lt;BR /&gt;ELSE 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Beside the "=" operator, you could also use "In"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( 'car'n In ('Toyota', 'Ford') )&lt;BR /&gt;RETURN 1&lt;BR /&gt;ELSE 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually you would want to use In to match multiple values, but you can select a single value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A tip about comparing character strings -- the comparison operators are case sensitive. So you would want to wrap the strings in the LowerCase() operator to make a case-insensitive match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 15:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/String-with-Parameter-comparision/m-p/827629#M16318</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-08-08T15:03:21Z</dc:date>
    </item>
  </channel>
</rss>

