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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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
MVP
MVP

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