Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rxp03570
Creator
Creator

Expression Simplification

Hi,

Is there anyway to simplify this expression I'm using?.

Date(AddMonths(Date(Max(Date#(ATTRIBUTE2, 'MMM-YYYY')),'MMM-YYYY'),-1),'MMM-YYYY')

Thanks,

1 Solution

Accepted Solutions
Nicole-Smith

You can get rid of one of the Date() functions because your Date# has already told QS that it is a date:

Date(AddMonths(Max(Date#(ATTRIBUTE2, 'MMM-YYYY')),-1),'MMM-YYYY')

View solution in original post

1 Reply
Nicole-Smith

You can get rid of one of the Date() functions because your Date# has already told QS that it is a date:

Date(AddMonths(Max(Date#(ATTRIBUTE2, 'MMM-YYYY')),-1),'MMM-YYYY')