<?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: Text Input linked to multiple categories in SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/785822#M15692</link>
    <description>&lt;P&gt;You can create a multi-value parameter using the list input object.&lt;/P&gt;
&lt;P&gt;this can be used i.e. in a prompt container.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 17:56:17 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2021-12-13T17:56:17Z</dc:date>
    <item>
      <title>Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/659612#M13886</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to link a Text Input control to more than 1 category in SAS VA. I can only select 1 category. Is there a workaround? How can this be done?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 04:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/659612#M13886</guid>
      <dc:creator>plapa29</dc:creator>
      <dc:date>2020-06-16T04:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/661739#M13897</link>
      <description>By assigning a parameter to the the text input, you could you create filters based on that parameter for each of the categories. &lt;BR /&gt;&lt;BR /&gt;There may be other ways, but this is the first thing that comes to mind.&lt;BR /&gt;&lt;BR /&gt;Sam</description>
      <pubDate>Wed, 17 Jun 2020 14:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/661739#M13897</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-06-17T14:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/664396#M13921</link>
      <description>&lt;P&gt;Yes indeed it is possible.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Step 1: Create a parameter in the data tab and give it some name (for this case lets say you have two columns in your table name A and B where both are text and you want to have the search bar index on both of them).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2: Create a new calculated column and name it something along the lines of rowShouldAppearInSearch. We want this to be a text column, 'true' if either A or B in the current row contains the current value of the parameter, false otherwise. To do this, have an if statement. If the length of the parameter is 0, return true (no parameter means we have no search restrictions). Else, if A contains parameter or B contains parameter, return true. Else, return false.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 3: Update your table to filter based on the calculated columns. So select the parameter to filter on, and then choose to filter to only include values of rowShouldAppearInSearch which are true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you get stuck on any of this. Otherwise, I hope I was able to help you out!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 17:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/664396#M13921</guid>
      <dc:creator>mipate</dc:creator>
      <dc:date>2020-06-23T17:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/669968#M14020</link>
      <description>Hi Mipate,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response. However, I still need help on this topic. Is there a video tutorial to link more than one categories to a Text Input? Alternatively, I will appreciate a quick call to guide me on this. Thank you</description>
      <pubDate>Thu, 16 Jul 2020 19:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/669968#M14020</guid>
      <dc:creator>plapa29</dc:creator>
      <dc:date>2020-07-16T19:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/669969#M14021</link>
      <description>Hi Sam,&lt;BR /&gt;&lt;BR /&gt;Thank you for taking the time to respond to my inquiry. However, I still need help on this topic. Is there a video tutorial to link more than one categories to a Text Input? Alternatively, I will appreciate a quick call to guide me on this. Thank you</description>
      <pubDate>Thu, 16 Jul 2020 19:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/669969#M14021</guid>
      <dc:creator>plapa29</dc:creator>
      <dc:date>2020-07-16T19:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/669988#M14022</link>
      <description>&lt;P&gt;Depending on the version of VA you have, it might not be possible. I don't remember how it was in 7.4 and earlier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you go to the Data pane and create a character parameter, then assign that parameter to the Text Input control, you should be able to retrieve the value from the text input field and then you can use that parameter value in filters.&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="hybrid.gif" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47240i4D822BCCBF67CD57/image-size/large?v=v2&amp;amp;px=999" role="button" title="hybrid.gif" alt="hybrid.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, here I have cars data where you might find "Hybrid" in both the 'Model' column and the 'Type' column. I created a parameter and assigned it to a Text Input control, then made an advanced filter for each of the two list tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The filter expressions are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'Type'n Contains 'Parameter 1'p&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'Model'n Contains 'Parameter 1'p&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if this sort of filtering is what you have in mind, but I thought it might help. In this example, I don't have a category assigned to the text input and the user can enter whatever string they want. But the objects filtered by the parameter won't show data until a value is entered in the text input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need a lot of step-by-step assistance, a call to SAS Technical Support is probably a good idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if this helps,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 20:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/669988#M14022</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2020-07-16T20:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/783858#M15678</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;I have 5 characters and create a character parameter and assign it to a text input:&lt;BR /&gt;( ( 'parameter'p NotMissing ) AND ( 'character'n Contains UpCase('parameter'p ) ) ) OR&lt;BR /&gt;( ( 'parameter1'n NotMissing ) AND ( 'character1'n Contains UpCase( 'parameter1'n) ) ) OR&lt;BR /&gt;( ( 'parameter2'n NotMissing ) AND ( 'character1'n Contains UpCase( 'parameter2'n) ) ) OR&lt;BR /&gt;( ( 'parameter3'n NotMissing ) AND ( 'character1'n Contains UpCase( 'parameter3'n) ) ) OR&lt;BR /&gt;( ( 'parameter4'n NotMissing ) AND ( 'character1'n Contains UpCase( 'parameter4'n) ) )&lt;BR /&gt;But in this case one text input controle doesn't affect others text input controles, but would like&lt;SPAN&gt;&amp;nbsp;to link a Text Input control to more than 1 category&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66367i2C1D825D183F4F71/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.PNG" alt="example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;where colour is&amp;nbsp;'parameter'p and&amp;nbsp;'character'n, name is&amp;nbsp; 'parameter1'n and&amp;nbsp; 'character1'n&amp;nbsp; etc.&lt;/P&gt;
&lt;P&gt;I tied to do, using your advice, but I do something wrong:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( GetLength('parameter'p) &amp;gt; 0 )&lt;BR /&gt;RETURN &lt;BR /&gt;( &lt;BR /&gt;(IF ('parameter'p NotMissing ) AND ( 'character'n Contains UpCase('parameter'p) ) &lt;BR /&gt;ELSE ( 0 = 1 ) &lt;BR /&gt;) &lt;BR /&gt;OR &lt;BR /&gt;(IF ('parameter1'p NotMissing ) AND ( 'character1'n Contains UpCase('parameter1'p) ) &lt;BR /&gt;ELSE ( 0 = 1 ) &lt;BR /&gt;)&lt;BR /&gt;ELSE ( 1 = 1 )&lt;/P&gt;
&lt;P&gt;Could you help me with it please?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 08:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/783858#M15678</guid>
      <dc:creator>J_J_J</dc:creator>
      <dc:date>2021-12-03T08:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/783935#M15679</link>
      <description>&lt;P&gt;To perform case-insensitive matching, you should apply UpCase() to both the parameter value and the category value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UpCase('character'n) Contains UpCase('parameter'p)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the example that you show, there appear to be separate text input controls for each category that you want to filter. If there is not a one-to-many mapping, then you would not need to worry about parameters and complex expressions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But perhaps I am misunderstanding something?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 14:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/783935#M15679</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2021-12-03T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/784471#M15682</link>
      <description>&lt;P&gt;Thank you Sam!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I solved this in the other way:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;( 'parameter'p NotMissing ) AND ( ( 'character'n Contains UpCase(&lt;BR /&gt;'parameter'p) ) AND ( 'character1'n Contains UpCase('parameter1'p) ) ) AND (&lt;BR /&gt;'character2'n Contains UpCase('parameter2'p) )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 06:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/784471#M15682</guid>
      <dc:creator>J_J_J</dc:creator>
      <dc:date>2021-12-07T06:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/784702#M15683</link>
      <description>&lt;P&gt;Glad to hear you've got it working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks for sharing your solution with us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 19:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/784702#M15683</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2021-12-07T19:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text Input linked to multiple categories in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/785822#M15692</link>
      <description>&lt;P&gt;You can create a multi-value parameter using the list input object.&lt;/P&gt;
&lt;P&gt;this can be used i.e. in a prompt container.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 17:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Text-Input-linked-to-multiple-categories-in-SAS-VA/m-p/785822#M15692</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-12-13T17:56:17Z</dc:date>
    </item>
  </channel>
</rss>

