<?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 How to show negative  values with parentheses? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-show-negative-values-with-parentheses/m-p/738924#M14863</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Viya 3.5 VA 8.5.1&lt;/P&gt;
&lt;P&gt;Is it possible show negative value with parentheses?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't use&amp;nbsp;&lt;SPAN class="cs1B16EEB5" style="font-family: inherit;"&gt;NEGPAREN&lt;/SPAN&gt;&lt;SPAN class="cs54AE92B1" style="font-family: inherit;"&gt;w.d format, isn't it?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="cs54AE92B1" style="font-family: inherit;"&gt;Can I create a custom format?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="cs54AE92B1" style="font-family: inherit;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="cs54AE92B1" style="font-family: inherit;"&gt;Nicola&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 14:50:37 GMT</pubDate>
    <dc:creator>itanid</dc:creator>
    <dc:date>2021-05-04T14:50:37Z</dc:date>
    <item>
      <title>How to show negative  values with parentheses?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-show-negative-values-with-parentheses/m-p/738924#M14863</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Viya 3.5 VA 8.5.1&lt;/P&gt;
&lt;P&gt;Is it possible show negative value with parentheses?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't use&amp;nbsp;&lt;SPAN class="cs1B16EEB5" style="font-family: inherit;"&gt;NEGPAREN&lt;/SPAN&gt;&lt;SPAN class="cs54AE92B1" style="font-family: inherit;"&gt;w.d format, isn't it?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="cs54AE92B1" style="font-family: inherit;"&gt;Can I create a custom format?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="cs54AE92B1" style="font-family: inherit;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="cs54AE92B1" style="font-family: inherit;"&gt;Nicola&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 14:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-show-negative-values-with-parentheses/m-p/738924#M14863</guid>
      <dc:creator>itanid</dc:creator>
      <dc:date>2021-05-04T14:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative  values with parentheses?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-show-negative-values-with-parentheses/m-p/772792#M15394</link>
      <description>&lt;P&gt;I'm sure that you can make it work assigning a format to the VA table from the report.&lt;/P&gt;
&lt;P&gt;I paste examplary code that works for me.&lt;/P&gt;
&lt;P&gt;After running the code, I go to environment manager / formats. With the admin rights I can elevate the newly created format so that VA can see it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fmt;
   set fmt3(rename=(VALOR=start LITERAL=label)) end=eof;
   retain fmtname "brandy" type "c";
   output;
   if eof then do;
      start=""; Label="";
      HLO="O"; output;
   end;
run;

cas mysession dropfmtlib fmtlibname=myFmtLib  /* 2 */
fmtsearchremove;

proc casutil;
deletesource casdata="myFmtLib.sashdat" incaslib="public";
run;
 
proc format library=work cntlin=fmt casfmtlib="myFmtLib";
run;

cas mysession savefmtlib fmtlibname=myFmtLib         /* 5 */
   table="myFmtLib.sashdat" caslib=PUBLIC replace;

cas mysession addfmtlib fmtlibname=myFmtLib     /* 2 */
   table="myFmtLib.sashdat" caslib=PUBLIC replacefmtlib;

cas mysession promotefmtlib fmtlibname=myFmtLib REPLACE;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Oct 2021 15:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-show-negative-values-with-parentheses/m-p/772792#M15394</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2021-10-07T15:16:13Z</dc:date>
    </item>
  </channel>
</rss>

