Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

deducting 1 month exactly from date field

Hi,

I have a date field and i have some measures.

My requirement is like, 1month needs to be deducted subsequently from date field  and data should roll up for each one month.

Can anyone help me how to deduct one month from date field.

Regards,

kumar

4 Replies
PrashantSangle

Hi,

Use Addmonths()

like AddMonths(FieldNAme,-1)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Muthu
Partner - Creator III
Partner - Creator III

Kumar

See the Attached Link.

Subtract 1 month from Date Variable in set analysis

Hope this helps

jagan
Partner - Champion III
Partner - Champion III

Hi,

In script try AddMonths() like below

LOAD

*,

AddMonths(DateFieldName, -1) AS LastMonthDate

FROM DataSource;

Regards,

Jagan.

maxgro
MVP
MVP

if I understand your question is like this (30 days rolling?)

Calculating rolling n-period totals, averages or other aggregations