Skip to Content

Showing last one month data in HANA


I want to show last one month data from current date.

I have a date field "LOGGEDON"

I want to filter it in projection , so that the filtered data is only passed to upper level.

What are the ways to do it?

Kindly suggest.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 29, 2016 at 01:35 AM


    I think I got your problem,

    Kindly create a Calculated column for longdate("LOGGEDON") as CC1

    then you already has Calculated created column of yours with (adddays(now(),-30)) as CC2

    then compare the Expression , you will not get the error.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 28, 2016 at 10:24 AM


    try add_months(current_date, -1)

    here is the official documentation for the add_months function

    Add a comment
    10|10000 characters needed characters exceeded

    • Adding to Sergio's points, but if you still trying to get the filter to only last 30 days (fixed). Whatever you have done is correct, it is just that in the filter expression editor, you must be comparing like this:

      LOGGEDON = Date_Filter

      Just ensure the data types of both these columns are same.


      Krishna Tangudu

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.