Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! 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)

5 Replies
ecolomer
Master II
Master II

Over a field Fecha.

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

p10.png

tresesco
MVP
MVP

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