<?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: Converting a category to a measure in VA (character to numeric) in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/252996#M3464</link>
    <description>&lt;P&gt;For those that use the Parse function and other string manipulations in SAS Visual Analytics, please note that there may be a performance degradation... &lt;A href="http://support.sas.com/kb/57/025.html" target="_blank"&gt;http://support.sas.com/kb/57/025.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Feb 2016 05:08:18 GMT</pubDate>
    <dc:creator>MichelleHomes</dc:creator>
    <dc:date>2016-02-28T05:08:18Z</dc:date>
    <item>
      <title>Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/251813#M3430</link>
      <description>&lt;P&gt;How do I convert a character field to numeric so I can use it as a measure instead of a category? &amp;nbsp;For example, I have a field called GPA which was pulled into the data source as a category (text field) because even though a GPA is a number, some values for some people have "N/A" in them (for not applicable). &amp;nbsp;That's why it's a text field. &amp;nbsp;I want to use it as a measure so I can&amp;nbsp;add it to a Visual Analytics report and show averages, standard deviations, etc. &amp;nbsp;There are functions in VA that can&amp;nbsp;convert a numeric field to text, but I don't see anything that converts from character to numeric. &amp;nbsp;I can write SQL code with my eyes closed, but I'm fairly new to VA, so I don't know the "tricks" to get around this limitation. &amp;nbsp;Whatever advice you could give would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 17:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/251813#M3430</guid>
      <dc:creator>jwperez</dc:creator>
      <dc:date>2016-02-23T17:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/251823#M3431</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the Parse operator to convert a string to a number like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Parse('number_as_text'n, 'COMMA14.')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Create a new calculated data item and use the expression above&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/251823#M3431</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-02-23T18:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/251836#M3432</link>
      <description>&lt;P&gt;WOW, Bruno, this is terrific! &amp;nbsp;All I had to do was plug my field name into the code and it worked perfectly! &amp;nbsp;Thanks so much for the quick reply.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 19:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/251836#M3432</guid>
      <dc:creator>jwperez</dc:creator>
      <dc:date>2016-02-23T19:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/252996#M3464</link>
      <description>&lt;P&gt;For those that use the Parse function and other string manipulations in SAS Visual Analytics, please note that there may be a performance degradation... &lt;A href="http://support.sas.com/kb/57/025.html" target="_blank"&gt;http://support.sas.com/kb/57/025.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 05:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/252996#M3464</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2016-02-28T05:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/253195#M3474</link>
      <description>&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for pointing this out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 15:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/253195#M3474</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-02-29T15:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/317704#M5978</link>
      <description>&lt;P&gt;Conversely, how do I treat a measure as a category, i.e. convert the numeric to character,&amp;nbsp;in a data item within an Information Map, for example? Is there an opposite-parse command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Should I post this as a "new" question?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 21:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/317704#M5978</guid>
      <dc:creator>ccaulkins9</dc:creator>
      <dc:date>2016-12-08T21:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/317818#M5983</link>
      <description>&lt;P&gt;Please post this as a new questions, since it is not Visual Analytics related.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The proper communitiy would be &lt;A href="https://communities.sas.com/t5/SAS-Web-Report-Studio/bd-p/sas_web_report_studio" target="_blank"&gt;https://communities.sas.com/t5/SAS-Web-Report-Studio/bd-p/sas_web_report_studio&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 07:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/317818#M5983</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-12-09T07:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/389843#M7973</link>
      <description>&lt;P&gt;hi bruno_sas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please help me to convert a measure into&amp;nbsp;category.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a variable which falls in Category and contains&amp;nbsp;1001, 1002, 1003&amp;nbsp;etc.&amp;nbsp;but when using this variable in calculated item it shows as measure.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 14:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/389843#M7973</guid>
      <dc:creator>Rahul_SAS</dc:creator>
      <dc:date>2017-08-22T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/389859#M7974</link>
      <description>Simply change the measure into a category on the data item in question. However I would recommend to have all category variables defined as character variable and likewise a measure should always be numeric, prior to loading the data into the LASR server</description>
      <pubDate>Tue, 22 Aug 2017 15:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/389859#M7974</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-08-22T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/389952#M7975</link>
      <description>&lt;P&gt;I already converted that measure as category and its available in Category segmant only but still when using in a filter its coming as measure.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 18:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/389952#M7975</guid>
      <dc:creator>Rahul_SAS</dc:creator>
      <dc:date>2017-08-22T18:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/390129#M7985</link>
      <description>check the model type for the data item, should be discrete</description>
      <pubDate>Wed, 23 Aug 2017 07:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/390129#M7985</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-08-23T07:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/505774#M11318</link>
      <description>&lt;P&gt;Where did you plug in your field name?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 21:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/505774#M11318</guid>
      <dc:creator>jkovachi</dc:creator>
      <dc:date>2018-10-18T21:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/505775#M11319</link>
      <description>Got it!</description>
      <pubDate>Thu, 18 Oct 2018 21:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/505775#M11319</guid>
      <dc:creator>jkovachi</dc:creator>
      <dc:date>2018-10-18T21:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a category to a measure in VA (character to numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/716243#M14616</link>
      <description>Thanks Bruno, this is very helpful! Also in Viya 3.5!&lt;BR /&gt;You saved me a lot of time. We meet for a coffee next time you are in Vienna.</description>
      <pubDate>Tue, 02 Feb 2021 22:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-a-category-to-a-measure-in-VA-character-to-numeric/m-p/716243#M14616</guid>
      <dc:creator>gsvolba</dc:creator>
      <dc:date>2021-02-02T22:10:48Z</dc:date>
    </item>
  </channel>
</rss>

