Skip to Content

How do I fix date?

Hi Team,

I want one suggestion for below query -

1) I want to fix start date e.g 01st January of every year in "Start Date" and "End Date" should be today, so when we checked in reporting object there I did not get any option to select "Start Date" from 01st January? and for today I had selected "Today with no time component"

Question for selection to "Start Date" as well as this will change after the completion of year....means 2019 is complete then automatically 2020's report will start from 01st January 2020....

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 04, 2019 at 01:46 PM

    Hi Amit,

    This should really be a predefined filter in the query (you don't need a prompt), as you want to the Start and End Date to be selected manually. Create the below filter in the Universe, using the OrderDate or whatever date you want to filter on.

    This is the syntax for Oracle (Trunc will return first date of year, and Sysdate returns current date)

    OrderTable.OrderDate between TRUNC(SysDate,'YEAR') and SysDate

    If the backend database is not Oracle, just google for syntax to get firstdate of year and current date, you should be able to do it easily.

    Mahboob Mohammed

    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.