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

Exprsn

HI Expertise

Please find the attachment of the QVW file.

currently i have the created date till OCTOBER 2017.

I want to show the 24 months back from max created date ...

But right now it is showing 2 years back ..

Actaully it whould from OCT-2017 back to 24 month-year..

What changes needs to be done to the dimesion ?

Thanks in advance

1 Solution

Accepted Solutions
sunny_talwar

Try this

Dimension

MonthName(Created)

Expression

Count({<Created = {"$(='>=' & TimeStamp(MonthStart(Max(Created), -24), 'DD-MM-YYYY hh:mm:ss') & '<' & TimeStamp(MonthStart(Max(Created), 1), 'DD-MM-YYYY hh:mm:ss'))"}>}Key)

Capture.PNG

View solution in original post

1 Reply
sunny_talwar

Try this

Dimension

MonthName(Created)

Expression

Count({<Created = {"$(='>=' & TimeStamp(MonthStart(Max(Created), -24), 'DD-MM-YYYY hh:mm:ss') & '<' & TimeStamp(MonthStart(Max(Created), 1), 'DD-MM-YYYY hh:mm:ss'))"}>}Key)

Capture.PNG