<?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: Dynamic Text and Parameter Description in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771340#M15367</link>
    <description>&lt;P&gt;The first pragmatic approach is to prefix the parameter in the text box with the reading "Filter applied".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the second solution is a workaround with a dummy data set which you can use for the button bar design, this prevents the data from being filtered.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can customized categories on the dummy char var, here 3 brands + "All products".&lt;/P&gt;
&lt;P&gt;you assign a parameter to it which will be used in the object filter. &lt;/P&gt;
&lt;P&gt;I attach screenshots.&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="a1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64245iBAC2C77800E4F405/image-size/large?v=v2&amp;amp;px=999" role="button" title="a1.png" alt="a1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a2.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64246i3E27E09ED7CA4484/image-size/large?v=v2&amp;amp;px=999" role="button" title="a2.png" alt="a2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( 'selected'p = 'All Products' )&lt;BR /&gt;RETURN ( 1 = 1 )&lt;BR /&gt;ELSE (&lt;BR /&gt;IF ( 'selected'p = 'Volkswagen' )&lt;BR /&gt;RETURN ( '_brand'n = 'Volkswagen' )&lt;BR /&gt;ELSE (&lt;BR /&gt;IF ( 'selected'p = 'Audi' )&lt;BR /&gt;RETURN ( '_brand'n = 'Audi' )&lt;BR /&gt;ELSE (&lt;BR /&gt;IF ( 'selected'p = 'SEAT' )&lt;BR /&gt;RETURN ( '_brand'n = 'SEAT' )&lt;BR /&gt;ELSE ( 1 = 2 ) ) ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 10:49:03 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2021-09-30T10:49:03Z</dc:date>
    <item>
      <title>Dynamic Text and Parameter Description</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771265#M15365</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a parameter on product that I added as a role to a button bar.&amp;nbsp; I then added it to a text Box.&amp;nbsp; When the button is clicked it will display the product in the text box (part of a title).&amp;nbsp; If nothing is clicked it says "&amp;lt;No Item Selected&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get this to say "All Products"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 00:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771265#M15365</guid>
      <dc:creator>dstephens22</dc:creator>
      <dc:date>2021-09-30T00:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text and Parameter Description</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771340#M15367</link>
      <description>&lt;P&gt;The first pragmatic approach is to prefix the parameter in the text box with the reading "Filter applied".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the second solution is a workaround with a dummy data set which you can use for the button bar design, this prevents the data from being filtered.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can customized categories on the dummy char var, here 3 brands + "All products".&lt;/P&gt;
&lt;P&gt;you assign a parameter to it which will be used in the object filter. &lt;/P&gt;
&lt;P&gt;I attach screenshots.&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="a1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64245iBAC2C77800E4F405/image-size/large?v=v2&amp;amp;px=999" role="button" title="a1.png" alt="a1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="a2.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64246i3E27E09ED7CA4484/image-size/large?v=v2&amp;amp;px=999" role="button" title="a2.png" alt="a2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( 'selected'p = 'All Products' )&lt;BR /&gt;RETURN ( 1 = 1 )&lt;BR /&gt;ELSE (&lt;BR /&gt;IF ( 'selected'p = 'Volkswagen' )&lt;BR /&gt;RETURN ( '_brand'n = 'Volkswagen' )&lt;BR /&gt;ELSE (&lt;BR /&gt;IF ( 'selected'p = 'Audi' )&lt;BR /&gt;RETURN ( '_brand'n = 'Audi' )&lt;BR /&gt;ELSE (&lt;BR /&gt;IF ( 'selected'p = 'SEAT' )&lt;BR /&gt;RETURN ( '_brand'n = 'SEAT' )&lt;BR /&gt;ELSE ( 1 = 2 ) ) ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 10:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771340#M15367</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-09-30T10:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text and Parameter Description</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771370#M15368</link>
      <description>&lt;P&gt;Thanks for the quick reply.&amp;nbsp; I'm probably not following since these don't seem to be working.&amp;nbsp; Are all three screen shots part of the same solution or the code for the dummy dataset?&amp;nbsp; I tried creating a calculated item but I get type mismatches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get the filter to show All Products in the Text box but as soon as you click another filter it defaults back to &amp;lt;No Item Selected&amp;gt;.&amp;nbsp; Ugh&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 13:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771370#M15368</guid>
      <dc:creator>dstephens22</dc:creator>
      <dc:date>2021-09-30T13:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text and Parameter Description</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771373#M15369</link>
      <description>&lt;P&gt;you have to create the dummy_va table via data step in sas studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;once done, load into the report.&lt;/P&gt;
&lt;P&gt;1) apply customized category matching your class variable levels that you use currently. Add "All Products" for all remaining values&lt;/P&gt;
&lt;P&gt;2) at page expand level use this newly created custom category in a button object INSTEAD of the one you're using currently&lt;/P&gt;
&lt;P&gt;3) assign a parameter to this button bar&lt;/P&gt;
&lt;P&gt;4) use the parameter in the text box&lt;/P&gt;
&lt;P&gt;5) use the advanced filter option for the object being filtered&lt;/P&gt;
&lt;P&gt;6) paste the logic of my previous post and adapt it to your class level names&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data casuser.dummy_va(promote=yes);
do number=1 to 25;
num_char=put(number,best12.);
output;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Sep 2021 14:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/771373#M15369</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-09-30T14:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text and Parameter Description</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/772534#M15385</link>
      <description>&lt;P&gt;thanks again.&amp;nbsp; quick question does this only work in VA 8.2 (Viya)?&amp;nbsp; I am only VA 7.5, SAS 9.4.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am missing something here, since I am still having issues.&amp;nbsp; I will continue to work on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 19:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dynamic-Text-and-Parameter-Description/m-p/772534#M15385</guid>
      <dc:creator>dstephens22</dc:creator>
      <dc:date>2021-10-06T19:01:56Z</dc:date>
    </item>
  </channel>
</rss>

