BookmarkSubscribeRSS Feed
SnehasisTTPL
Fluorite | Level 6

In SAS VA Report Builder for bar diagram, unit of axis are showing in billion or trillion ,I need to show it in 100 crore or 10

lakhs unit.

21 REPLIES 21
TejaSurapaneni
Lapis Lazuli | Level 10

Hi TTPL,

I Think there is no another option in Reports to covert billion or trillion into crores and lakhs using bar chart (Object).

Regards,

Teja Surapaneni

MichelleHomes
Meteorite | Level 14

Hi There,

If a SAS user-defined format has been configured in the associated SAS Application Server for your SAS Visual Analytics environment and also associated with the data item then it is available in SAS Visual Analytics. This is documented in the  SAS(R) Visual Analytics 7.1: User's Guide

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
TejaSurapaneni
Lapis Lazuli | Level 10

Hi Michelle,

I am also tried user-defined formats to convert millions to lacs but there is no use, The value is not changing millions to lacs (in Reports).

Thanks,

Teja

MichelleHomes
Meteorite | Level 14

Hi Teja,

You need to ensure the SAS formats catalog is registered in the SAS Application server and the user-defined format is set in the attributes for the data item's metadata. If the configuration is done as directed by the documentation it should work.

If it doesn't work for you then I suggest connecting to your SAS Application server using Enterprise Guide or some other SAS client and test it separate to the SAS Visual Analytics GUI. Perhaps your user-defined format was created in the SAS work formats catalog rather than a permanent library formats catalog.

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
TejaSurapaneni
Lapis Lazuli | Level 10

Hi Michelle,

Can you explain little bit...

Thanks,

Teja.

TejaSurapaneni
Lapis Lazuli | Level 10

Hi Michelle,

The attached file is Actually what i am tried.


qqq.png
MichelleHomes
Meteorite | Level 14

Hi Teja,

From your screenshot you are selecting a SAS defined format. What I was suggesting was to create a SAS user-defined format based on the criteria you need to display crores and lakhs. This is achieved by using PROC FORMAT and ensure the format is created in a permanent catalog on the SAS Application Server. You may want to get your SAS Administrator involved to assist you with this.

Art's paper on PROC FORMAT may provide you some guidance http://www2.sas.com/proceedings/sugi29/236-29.pdf as well as the SAS documentation at Base SAS(R) 9.4 Procedures Guide, PROC FORMAT

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
TejaSurapaneni
Lapis Lazuli | Level 10

Hi Michelle Thanks for your Reply,

It is possible in Reports or not?

if it is possible can you explain with one example,

Thanks,

Teja

MichelleHomes
Meteorite | Level 14

Hi Teja,

As I have previously mentioned, it is possible to use a SAS user-defined format in a Visual Analytics Report.

I am not familiar with the type of format you require for crores and lakhs. If you go through the paper I provided above there is PROC FORMAT code with the picture statement which you can use as an example to create the format you require. Then you need to set it up in your SAS Application Server as I mentioned in the above reply.

Once the SAS user-defined format has been created and deployed on the SAS Application Server, then your data item can refer to the format definition and your values will be in crores and lakhs rather than billions or trillions.

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
ram1981mehta
Calcite | Level 5

Hi Michelle,

 

I was following your notes , please help me where I am going wrong.

 

/*Defination of format*/

 

 

libname FORLIB1 'C:\.................';

proc format lib=FORLIB1 ;
picture social (round)
1E03-<1000000='000K' (mult=.001 )
1E06-<1000000000='000.9M' (mult=.00001)
1E09-<1000000000000='000.9B' (mult=1E-08)
1E12-<1000000000000000='000.9T' (mult=1E-11);
run;

 

LIBNAME DATALIB 'C:\............';

 


DATA DATALIB .SAMPLE_INSIGHT;
SET DATALIB .insighttoy_notexta(OBS=1000);
FOR_TOTAL=ORDERTOTAL FORMAT SOCIAL.;
RUN;

 

I uploaded the  DATALIB .SAMPLE_INSIGHT dataset in public autoloaded folder (sas trial version) , along with that I uploded the format social in the format folder.

 

When I use the SAMPLE_INSIGHT dataset in the designer , I can see the social format assigned to FOR_TOTAL column, and it is made as a category.

The possible values are 100M,20B.

  

My requirement is to add them up and display it at 20.1B.

 

I have attached the document 
Thanks,
Ashish

 

SASKiwi
PROC Star

As I understand it, once a user-defined format is applied to a column in VA it can only be used as a category in VA and cannot be used to customise measures as you appear to be doing.

avinesh
Fluorite | Level 6

Hi Michelle

Even I am also facing this same issue in VA 6,4.I tried with the user-defined format as you said but I am not able get the solution what I required.

MichelleHomes
Meteorite | Level 14

Hi,

Is it that your user-defined format not defined correctly? What is your PROC FORMAT code and what is it that you are hoping to achieve? With a better understanding of what you are using for your user-defined format and what your expected result should look like, the community may be able to assist.

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
MichelleHomes
Meteorite | Level 14

Hi

Do you still require assistance with this request? Please mark question as answered correctly or helpful so that others know who may come across it in future.

Thanks,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 21 replies
  • 4990 views
  • 3 likes
  • 10 in conversation