<?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: SAS VA Text Box Data Roles in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781274#M15641</link>
    <description>&lt;P&gt;I want to have the Target_Perid in the Text. Thanks.&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="Dee2_0-1637334378149.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65910i9F85A3A9A1E6A8AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dee2_0-1637334378149.png" alt="Dee2_0-1637334378149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 15:06:36 GMT</pubDate>
    <dc:creator>Dee2</dc:creator>
    <dc:date>2021-11-19T15:06:36Z</dc:date>
    <item>
      <title>SAS VA Text Box Data Roles</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781164#M15637</link>
      <description>&lt;P&gt;&lt;SPAN&gt;My version of SAS Visual Analytics is 8.5.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added a Text control in the report. It allows me to add Measure Data Roles but the column I wanted to add is a string which is a category.&amp;nbsp; What can I do about it? Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 23:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781164#M15637</guid>
      <dc:creator>Dee2</dc:creator>
      <dc:date>2021-11-18T23:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Text Box Data Roles</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781183#M15638</link>
      <description>Although there is not a way to directly add a categorical column to a text box, you can use parameters to add dynamic characters to text. Can you describe what you are trying to add in your text box? Can you provide a screenshot of your report or a simple example?</description>
      <pubDate>Fri, 19 Nov 2021 03:44:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781183#M15638</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2021-11-19T03:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Text Box Data Roles</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781274#M15641</link>
      <description>&lt;P&gt;I want to have the Target_Perid in the Text. Thanks.&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="Dee2_0-1637334378149.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65910i9F85A3A9A1E6A8AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dee2_0-1637334378149.png" alt="Dee2_0-1637334378149.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 15:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781274#M15641</guid>
      <dc:creator>Dee2</dc:creator>
      <dc:date>2021-11-19T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Text Box Data Roles</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781357#M15647</link>
      <description>&lt;P&gt;Thank you! Here are a few options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 1: Parameters&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Usually when titles need to be dynamic, the report will have controls for the user to select something, such as a year, category, etc. Parameters are associated with report controls and allow you to use that value they have selected in calculated items and text boxes. In other words, if a user selects 'Target Period 1' in a report control, your parameter's value is 'Target Period 1' and you can use it in conditional logic just like any other calculated item - plus, you can use them in text boxes regardless of whether they are character, numeric, or date.&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="parameter.gif" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65921i4B2ADA721C4A7A0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="parameter.gif" alt="parameter.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to Data --&amp;gt; New Data Item --&amp;gt; Parameter&lt;/LI&gt;
&lt;LI&gt;In the pop-up window, give your parameter a name and select "Character"&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="title_parm.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65922i15DD5A0D3FA99EE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="title_parm.PNG" alt="title_parm.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;Add the parameter to a report control, such as a button bar:&lt;BR /&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stu_SAS_0-1637344322583.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65924i5F64E6973E1F0040/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stu_SAS_0-1637344322583.png" alt="Stu_SAS_0-1637344322583.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Add the parameter to your text box:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stu_SAS_1-1637344431442.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65925i0A9EE407F4DA38E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stu_SAS_1-1637344431442.png" alt="Stu_SAS_1-1637344431442.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's all there is to it! If you're interested in dynamic text and parameters, check out my paper&amp;nbsp;&lt;A style="background-color: #ffffff;" href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/2986-2019.pdf" target="_blank" rel="noopener"&gt;Mastering Parameters in SAS Visual Analytics&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 2: Key Values&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The reason why you cannot add a category directly to a text box is because that category may have multiple values in a large dataset. For example, if a category had values "A," "B", and "C," the text box would not know which of the values to show. If this value is&amp;nbsp;&lt;EM&gt;always&lt;/EM&gt; just one category, you can use a Key Value to display it since they support multiple categories. To do this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Add a Key Value to your report and give it a role of a category:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="category.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65926iBCFD80EFCC856DCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="category.PNG" alt="category.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt; Go to Options, scroll to the bottom, and remove all labels except for the category value:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="keyvalue-options.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65927iE19DCF7E2CBE8378/image-size/medium?v=v2&amp;amp;px=400" role="button" title="keyvalue-options.PNG" alt="keyvalue-options.PNG" /&gt;&lt;/span&gt; &lt;/LI&gt;
&lt;LI&gt;You now should have "Title" consisting only of the single category&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="single-category-keyvalue.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65928i77C02D6B729777DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="single-category-keyvalue.PNG" alt="single-category-keyvalue.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 3: Getting the Numeric Parts&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If your single value has both text and numeric parts, such as "Target Period: 1," you can split out the numeric part of the data. This can be done within Visual Analytics using string functions, but it may be easier to do during data prep. If you grab the numeric parts, you can set their aggregation values to "Average," set decimal points to zero, then add them as measures to a text box. For example:&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="Stu_SAS_2-1637345381917.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65929i563FB04A37B6E3F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Stu_SAS_2-1637345381917.png" alt="Stu_SAS_2-1637345381917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This one works great for things like years, quarters, times, dates, etc. I use this trick often for showing the date a piece of data has been pulled by grabbing the month, year, day, and SAS time of day formatted as a duration (though you can also use the Modified Date option within text as well, depending on your need).&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 19:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Text-Box-Data-Roles/m-p/781357#M15647</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2021-11-19T19:05:31Z</dc:date>
    </item>
  </channel>
</rss>

