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

Hi to all,

I am trying to calculate the difference in days between two date fields. Is there any way to do this on report level ?

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
TejaSurapaneni
Lapis Lazuli | Level 10

Hi Vangelis,

Happy to hear that, please mark the question as answered.

Thanks,

Teja Surapaneni

View solution in original post

6 REPLIES 6
TejaSurapaneni
Lapis Lazuli | Level 10

Hi,

Can pls tell me bit more u want no.of days or DOD growth

vtsit
Calcite | Level 5

No, I just want the difference in days just like in excel.

I could not find an appropriate function to implement this.

Thanks

TejaSurapaneni
Lapis Lazuli | Level 10

Just convert the date fields to numeric (using treatas function), after that u can easily get solution.

PeterWijers
Lapis Lazuli | Level 10

Teja, vtsit

correct, that works well  Smiley Wink

pic1.png

This also covers the year skip, that would not have been solved while using days(Del.Date)-Days(entry.Date)

greeting

vtsit
Calcite | Level 5

Hi all,

thanks for the replies, I finally managed to solve the problem due to your suggestions.

Thank you so much.

Best regards

Vangelis

TejaSurapaneni
Lapis Lazuli | Level 10

Hi Vangelis,

Happy to hear that, please mark the question as answered.

Thanks,

Teja Surapaneni

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 6 replies
  • 1604 views
  • 1 like
  • 3 in conversation