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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
sbkumar
Creator
Creator

I have one issue in qliksense

I have this expression in qliksense.now i want Rolling months of last 12 months.how to modify that expression
?

 

=if(DATE > YearStart(AddYears(Today(),-1)) AND DATE <= Date(Today()),Month(DATE),)

6 Replies
shraddha_g
Partner - Master III
Partner - Master III

Try below code in Set analysis:

Date ={">=$(= date(addmonths(max(Date),-12))) <= $(=Date(Max(Date)))"}

sbkumar
Creator
Creator
Author

not able to get the result

Thiago_Justen_
MVP
MVP

I recommend you see the link below:

 

Set Analysis for Rolling Periods

 

Cheers

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
sbkumar
Creator
Creator
Author

1.jpg
2.jpgi have used that expression.can anyone pls help me to get rolling months for 6 months(previous 6 months)

Thiago_Justen_
MVP
MVP

See this: Calculating rolling n-period totals, averages or other aggregations

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
MK9885
Master II
Master II

Maybe
create a field in your backend script as below
If( YOURDATEFIELD> monthstart(addmonths(today(),-5)) and YOURDATEFIELD<= today(),1) as [Rolling 6]

In front end use [Rolling 6] ={1} in your set analysis