The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"Generate Attribute - Week ending date"

rowan_growan_g Member Posts: 47 Contributor II
edited June 2019 in Help
Hi,

I'm trying to generate a week ending date - assume the week ends on a Sunday.
For example - if the date is 7/05/2013, week ending date falls on 12/05/2013.
I'm trying to generate it using a formula within Generate Attribute but it's proving difficult to convert a date to a day of the week.

Any ideas on how to solve this?

Thanks again!

Cheers,
Rowan

Answers

  • rowan_growan_g Member Posts: 47 Contributor II
    Anyone have any hints about this?
  • MacPhotoBikerMacPhotoBiker Member Posts: 60 Contributor II
    Sorry for the late reply, just saw your post when searching for something similar.

    Did you try the "Date to Nominal" operator? The operator help provides different options for the format, "E" for example gives you the name of the weekday.
  • rowan_growan_g Member Posts: 47 Contributor II
    I found this blog recently that had an excellent solution http://rapidminernotes.blogspot.com.au/2013/05/finding-next-sunday.html
    I tried it and it worked - gave me a bit more of an understanding about how some of these rapidminer functions work.

    In the end I wrote an SQL query on my "Read Database" operator because my process was already too long without the addition of more operators.
    I'll play with date-to-nominal today and see what happens.

    Thanks for replying!
Sign In or Register to comment.