BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mauri0623
Quartz | Level 8

Hello,

 

when I sum a variable called transaction I get $18,964,936. I want this number to be $18,964,935.59. This is because the people that use excel to obtain this sum they come up with $18,964,935.59 and not $18,964,936. So I am 42 cent short and I am being blamed.

 

Thank you!

 

-mauri

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@Kurt_Bremser wrote:

Apart from the fact that you only need to change the display format, you should tell those people you are working in data warehousing, not accounting. With 18 millions, cents are statistically insignificant and therefore irrelevant. The beancounters should stay with SAP.


Actually my approach would be to provide them with a text file of about 5 million more rows than Excel can handle and ask them to "sum that".

 

Make sure to include a number of decimal points for some value that they are likely to miss by using only 2 decimals.

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Probably, the result of $18,964,936. is formatted to have zero digits to the right of the decimal point. So you need to change the format on that variable to one that includes digits to the right of the decimal point. You could apply format DOLLAR18.2 to that variable to see the cents displayed.

--
Paige Miller
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

Bruster's million.

 

wait until they find you are 1/2 cent short.

 

 

Kurt_Bremser
Super User

Apart from the fact that you only need to change the display format, you should tell those people you are working in data warehousing, not accounting. With 18 millions, cents are statistically insignificant and therefore irrelevant. The beancounters should stay with SAP.

ballardw
Super User

@Kurt_Bremser wrote:

Apart from the fact that you only need to change the display format, you should tell those people you are working in data warehousing, not accounting. With 18 millions, cents are statistically insignificant and therefore irrelevant. The beancounters should stay with SAP.


Actually my approach would be to provide them with a text file of about 5 million more rows than Excel can handle and ask them to "sum that".

 

Make sure to include a number of decimal points for some value that they are likely to miss by using only 2 decimals.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 751 views
  • 0 likes
  • 5 in conversation