<?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 Custom sorting for SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-sorting-for-SAS-VA/m-p/441674#M9597</link>
    <description>&lt;P&gt;I have a variable that represents responses to several surveys. There are over 200 unique responses, 60 of which are ordinal responses with a total n of 1,757 responses. For example, in one group of responses I have 'very difficult', difficult', easy' , and 'too easy' whereas, another group of responses may be ' yes', 'no', or 'not sure'. I need those responses sorted in that order. The vast majority of responses, however, are open-ended questions and they do not have to be sorted but I need them to appear in the same table as the sorted ordinal responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "Custom Sort" feature in SAS Visual Analytics only allows a limited number of responses and will not even allow me to sort all of my ordinal responses. I created a user-defined format in SAS Enterprise Guide (sample of code shown below) and this allows me to sort the ordinal responses. However, I cannot display the ordinal responses and the open-ended questions in the same table on SAS Visual Analytics, and be able to sort the ordinal responses. Giving a unique value to each open-ended response would be too time consuming.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*sample of user-defined format;&amp;nbsp;&lt;BR /&gt;else if answerup = 'VERY UNLIKELY' then answer_code = 25;&lt;BR /&gt;else if answerup = 'UNLIKELY' then answer_code = 26;&lt;BR /&gt;else if answerup = 'POSSIBLY' then answer_code = 27;&lt;BR /&gt;else if answerup = 'LIKELY' then answer_code = 28;&lt;BR /&gt;else if answerup = 'VERY LIKELY' then answer_code =29;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else if answerup = '1 NOT CONFIDENT' then answer_code = 30;&lt;BR /&gt;else if answerup = '2 SOMEWHAT UNCONFIDENT' then answer_code =31;&lt;BR /&gt;else if answerup = '3 SOMEWHAT CONFIDENT' then answer_code = 32;&lt;BR /&gt;else if answerup = '4 CONFIDENT' then answer_code = 33;&lt;BR /&gt;else if answerup = '5 VERY CONFIDENT' then answer_code = 34;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;* proc format step;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc format library=formats;&lt;BR /&gt;value abe_answern&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;25='Very Unlikely'&lt;BR /&gt;26='Unlikely'&lt;BR /&gt;27='Possibly'&lt;BR /&gt;28='Likely'&lt;BR /&gt;29='Very Likely'&lt;/P&gt;&lt;P&gt;30='Not Confident'&lt;BR /&gt;31='Somewhat Unconfident'&lt;BR /&gt;32='Somwhat Confident'&lt;BR /&gt;33='Confident'&lt;BR /&gt;34='Very Confident'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data lib.survey;&lt;BR /&gt;set lib.survey;&lt;BR /&gt;format answer_code abe_answern.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="forum sample.JPG" style="width: 435px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18932iA1FBA84E560A208F/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum sample.JPG" alt="forum sample.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice how the responses in "Frequency of Use"&amp;nbsp; and "One helpful thing learned" are alphabetical. I want the "Frequency of Use" to be sorted as 'Rarely' 'Sometimes' 'Often' 'Always' and "One helpful thing learned" to be sorted alphabetically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;this possible and how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2018 18:32:16 GMT</pubDate>
    <dc:creator>cpacecnm</dc:creator>
    <dc:date>2018-03-02T18:32:16Z</dc:date>
    <item>
      <title>Custom sorting for SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-sorting-for-SAS-VA/m-p/441674#M9597</link>
      <description>&lt;P&gt;I have a variable that represents responses to several surveys. There are over 200 unique responses, 60 of which are ordinal responses with a total n of 1,757 responses. For example, in one group of responses I have 'very difficult', difficult', easy' , and 'too easy' whereas, another group of responses may be ' yes', 'no', or 'not sure'. I need those responses sorted in that order. The vast majority of responses, however, are open-ended questions and they do not have to be sorted but I need them to appear in the same table as the sorted ordinal responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "Custom Sort" feature in SAS Visual Analytics only allows a limited number of responses and will not even allow me to sort all of my ordinal responses. I created a user-defined format in SAS Enterprise Guide (sample of code shown below) and this allows me to sort the ordinal responses. However, I cannot display the ordinal responses and the open-ended questions in the same table on SAS Visual Analytics, and be able to sort the ordinal responses. Giving a unique value to each open-ended response would be too time consuming.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*sample of user-defined format;&amp;nbsp;&lt;BR /&gt;else if answerup = 'VERY UNLIKELY' then answer_code = 25;&lt;BR /&gt;else if answerup = 'UNLIKELY' then answer_code = 26;&lt;BR /&gt;else if answerup = 'POSSIBLY' then answer_code = 27;&lt;BR /&gt;else if answerup = 'LIKELY' then answer_code = 28;&lt;BR /&gt;else if answerup = 'VERY LIKELY' then answer_code =29;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else if answerup = '1 NOT CONFIDENT' then answer_code = 30;&lt;BR /&gt;else if answerup = '2 SOMEWHAT UNCONFIDENT' then answer_code =31;&lt;BR /&gt;else if answerup = '3 SOMEWHAT CONFIDENT' then answer_code = 32;&lt;BR /&gt;else if answerup = '4 CONFIDENT' then answer_code = 33;&lt;BR /&gt;else if answerup = '5 VERY CONFIDENT' then answer_code = 34;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;* proc format step;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc format library=formats;&lt;BR /&gt;value abe_answern&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;25='Very Unlikely'&lt;BR /&gt;26='Unlikely'&lt;BR /&gt;27='Possibly'&lt;BR /&gt;28='Likely'&lt;BR /&gt;29='Very Likely'&lt;/P&gt;&lt;P&gt;30='Not Confident'&lt;BR /&gt;31='Somewhat Unconfident'&lt;BR /&gt;32='Somwhat Confident'&lt;BR /&gt;33='Confident'&lt;BR /&gt;34='Very Confident'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data lib.survey;&lt;BR /&gt;set lib.survey;&lt;BR /&gt;format answer_code abe_answern.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="forum sample.JPG" style="width: 435px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18932iA1FBA84E560A208F/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum sample.JPG" alt="forum sample.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice how the responses in "Frequency of Use"&amp;nbsp; and "One helpful thing learned" are alphabetical. I want the "Frequency of Use" to be sorted as 'Rarely' 'Sometimes' 'Often' 'Always' and "One helpful thing learned" to be sorted alphabetically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;this possible and how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 18:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-sorting-for-SAS-VA/m-p/441674#M9597</guid>
      <dc:creator>cpacecnm</dc:creator>
      <dc:date>2018-03-02T18:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Custom sorting for SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-sorting-for-SAS-VA/m-p/442039#M9603</link>
      <description>&lt;P&gt;I'm not a SAS VA guru by any means but you should be able to enter some custom code which will do the job for you. I wrote an article not long ago on Custom Sorting with Proc SQL which you can use to derive any order you choose. You can find it here -&amp;gt;&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Custom-Sorting-with-Proc-SQL/ta-p/373460" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Custom-Sorting-with-Proc-SQL/ta-p/373460&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 11:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Custom-sorting-for-SAS-VA/m-p/442039#M9603</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-03-03T11:03:17Z</dc:date>
    </item>
  </channel>
</rss>

