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: 
bobbydave
Creator III
Creator III

Set analysis range

I guess this is trivial but i am going nuts but can someone assist

I am trying to get a range between the last  3 months and today.

=sum({< YearMonth = {"'>=' & MonthStart(AddMonths(today(),-6)) & '<=' & MonthStart(AddMonths(Today()))"} >} Security_Total)

The range is confusing me when using within set analysis

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

=Sum({<YearMonth = {"$(='>=' & MonthStart(Today(), -3) & '<=' & MonthStart(Today()))"}>} Security_Total)

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this

=Sum({<YearMonth = {"$(='>=' & MonthStart(Today(), -3) & '<=' & MonthStart(Today()))"}>} Security_Total)

snehamahaveer
Creator
Creator

Hi David,

May be you could try using this..

If you are specific with dates, then the one below.

Sum({<YearMonth = {'>=Addmonths(Today(),-3) <= Today()'}>}Security_Total)

if you want 3 months including the current month,

Sum({<YearMonth = {'>=Addmonths(Monthstart(Today()),-3) <=Monthstart(Today())'}>}Security_Total)

Hope it helps,

S