SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sam5
Calcite | Level 5

Hi,

I have an excel 2016 spreadsheet which creates a pivot table using the SAS addin. 

There is a problem with the way one of the dates is formatted. Even though the table on SAS has the date9. format, the date exports as a number and not the date itself. When I try to change the format on excel to mmm-yy the format will only change if the date is in the row, column or value sections of the pivot table. However, I want the date to be a filter and changing the format when the date is a filter does nothing.

On top of this it works as expected for another date in the table.

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

Not too sure how excel see these.

The best way to go the the bottom of this is to lowly reduce the amount of data until you isolate the culprit.

Or conversely, start with one working row, and add data until you isolate the culprit.

View solution in original post

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

It's hard to debug such things remotely, but several factors in your description give a hint that the misbehaviour might be due to a bad (i.e. invalid) value for that variable somewhere in the data.

sam5
Calcite | Level 5

Thanks for replying. 

Would mising values be an example of an invalid value? 

ChrisNZ
Tourmaline | Level 20

Not too sure how excel see these.

The best way to go the the bottom of this is to lowly reduce the amount of data until you isolate the culprit.

Or conversely, start with one working row, and add data until you isolate the culprit.

sam5
Calcite | Level 5

Thanks for your help. Once I changed a missing value to 0 I was able to format the dates without any issue.

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!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1714 views
  • 0 likes
  • 2 in conversation