SAS Visual Analytics

Dashboards, reports, BI and analytics - all from a single interface.
BookmarkSubscribeRSS Feed
ChrisWu
Calcite | Level 5

How to create million format to measure in SAS VA

8 REPLIES 8
Community_Guide
SAS Moderator

Hello @ChrisWu,


Your question requires more details before experts can help. Can you revise your question to include more information? 

 

Review this checklist:

  • Specify a meaningful subject line for your topic.  Avoid generic subjects like "need help," "SAS query," or "urgent."
  • When appropriate, provide sample data in text or DATA step format.  See this article for one method you can use.
  • If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition. Use the Photos button to include the image in your message.
    undefined
  • It also helps to include an example (table or picture) of the result that you're trying to achieve.

To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message.  From there you can adjust the title and add more details to the body of the message.  Or, simply reply to this message with any additional information you can supply.

 

undefined

SAS experts are eager to help -- help them by providing as much detail as you can.

 

This prewritten response was triggered for you by fellow SAS Support Communities member @PGStats

.
SASKiwi
PROC Star

What do you want your million format to look like? You need to provide an example otherwise we just end up guessing.

ChrisWu
Calcite | Level 5

Variable SUM_AMT=1,234,567,890 and want VA report to display formatted SUM_AMT value as 1,234.46

 

ChrisWu
Calcite | Level 5

The closest format is BESTw.

 

Could SAS create something like BESTRw. (aka BEST Roman)

 

Value  >  BEST6.  > * (BESTR4.)

1,234   > 1.23 E3 > 1.23 K

1,234,567   > 1.23 E6 > 1.23 M

1,234,567,890   > 1.23 E9 > 1.23 B

1,234,567,890,123   > 1.23 E12 > 1.23 T

MikeJenista
SAS Employee

I would just create a new column that divides this one by 1,000,000.  Then you can adjust the trailing digits after the decimal with the standard numeric format options.

ChrisWu
Calcite | Level 5
umm .. this does not address drilldown to smaller aggregations that divide by 1,000 would be more appropriate.
SASKiwi
PROC Star

Depending on the type of reports you are developing, VA can scale numbers automatically. For example I have a number of VA graphs where I have applied the SAS DOLLAR format to the source data and the graph automatically labels and scales the axes with "$ millions". You might want to check this out.

ChrisWu
Calcite | Level 5
Thanks! I need the Million formatted, firstly, in a CrossTab Report, then a graph would follow based on the data from CrossTab

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 8 replies
  • 4785 views
  • 0 likes
  • 4 in conversation