Skip to Content

Finding first date in hana graphical calculation view

Can anyone tell me how to calculate first date of a month in hana graphical calculation view? EX: 23-07-2018 should become 01-07-2018

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 13, 2018 at 10:47 AM

    You can create a calculated date column which uses the component function to extract the month and year of your date. As the beginning of the month is always 1, you have then all components to create build the new date. If your current date is not in a date format, you can use conversion function date to convert your value into a date.

    Regards,
    Florian

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 15, 2018 at 09:42 AM

    ADD_MONTHS(NEXT_DAY(LAST_DAY(YOUR_DATE_FIELD)),-1)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 24, 2018 at 10:01 AM

    You can create a calculated column with datatype as Date.

    Please paste the below code in the expression editor.

    date (format("CREATEDON",'YYYYMM'))

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.