You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Analysis - SQL expression

Accepted answer
41
Views
2
Comments

Summary:

How to get first month of previous date - SQL Expression (Criteria )

Content (required):

We have created a Analysis report and business needs to schedule this analysis on first of every month to run for a previous month.

Eg : schedule date will be 1- May-2023

Run parameter should be : From 1- Apr-2023 to 30 -Apr-2023

I am using current_date - 1 to get the last date, but i am wondering how to get the first day of the previous month.


Kindly share your thoughts.

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!