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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Muthu
Partner - Creator III
Partner - Creator III

MonthYear -1

Hi,

I have a requirement where I have to take MonthName of a particular value -1

Eg : if Its Sep - 2014 it has to be Aug - 2014

I have used the following expression But its not working,

Please help.

=AddMonths(GetFieldSelections(FieldName),-1)

Labels (1)
5 Replies
ecolomer
Master II
Master II

Over a field Fecha.

=MonthName(AddMonths(MonthName(Max(Fecha)),-1))

p10.png

tresB
Champion III
Champion III

Try like:

MonthName( SelectedDatefield, -1)

ecolomer
Master II
Master II

Probably you need convert to date

=MonthName(AddMonths(MonthName(GetFieldSelections(FieldName)),-1))

tyagishaila
Specialist
Specialist

=MonthName([MonthName(Date)]-1)

Muthu
Partner - Creator III
Partner - Creator III
Author

thanks a lot.. it worked