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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Expression

In my pivot table I have following expression label which is working well

='Introduced' & ' '&Date(Date#((ONLY(C_YEAR_MONTH)),'M-YYYY'),'MMM-YY')

But this expression label is not working

='Introduced' & ' '&Date(Date#((ONLY(C_YEAR_MONTH)-1),'M-YYYY'),'MMM-YY')

pls some one advise me what is wrong with 2nd label

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You are subtracting 1 from the field at a time it seems only be having text representation, try

='Introduced' & ' '&Date(addmonths(Date#(ONLY(C_YEAR_MONTH),'M-YYYY'),-1),'MMM-YY')

View solution in original post

4 Replies
swuehl
MVP
MVP

You are subtracting 1 from the field at a time it seems only be having text representation, try

='Introduced' & ' '&Date(addmonths(Date#(ONLY(C_YEAR_MONTH),'M-YYYY'),-1),'MMM-YY')

Not applicable

='Introduced' & ' '&Date(addmonths(Date#(ONLY(C_YEAR_MONTH),'M-YYYY'),-1),'MMM-YY')


Try the above

MK_QSL
MVP
MVP

='Introduced' & ' '&Date(AddMonths(Date#((ONLY(C_YEAR_MONTH)),'M-YYYY'),-1),'MMM-YY')

upaliwije
Creator II
Creator II
Author

Thanks all