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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

last 12 months data

i have two column monthname and consumption value

monthname has the value between aug2010 to jul2012 and also have consumption repectively

now tell me how to calculate consumtion value for the last 12 months

Labels (1)
1 Reply
Not applicable
Author

Try like:

=sum(if(monthname>=Date( (MonthStart(Today())-365),'MMMYYYY'),consumption))

Regards

R