Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
cbaqirdhds
Contributor II

Rolling Yearly Usage

I am trying to create a graph for NPrinting that shows Usage over the past rolling year.

The original expression is:

sum(aggr(sum({$}CNT_USAGE),DOMAIN,GOVERNING_CCG,DESCRIPTION,LAST_REVIEW_DATE))

This is what I was trying for rolling but it is not working:

sum(aggr(sum({$<TRX_DATE={">=$(=addmonths(monthend(today()),-12))<=$(=addmonths(monthend(today()),0))"}>}CNT_USAGE),DOMAIN,GOVERNING_CCG,DESCRIPTION,LAST_REVIEW_DATE))

or

sum({$<TRX_DATE={">=$(=addmonths(monthend(today()),-12))<=$(=addmonths(monthend(today()),0))"}>}CNT_USAGE)

Tags (1)
1 Solution

Accepted Solutions
neelamsaroha157
Valued Contributor II

Re: Rolling Yearly Usage

sum({$<TRX_DATE={">=$(=Date(addmonths(monthend(today()),-12),'MM-DD-YYYY'))<=$(=Date(addmonths(monthend(today()),0),'MM-DD-YYYY'))"}>}CNT_USAGE)

Try this, its the date format which is different from your field format.

2 Replies
cbaqirdhds
Contributor II

Re: Rolling Yearly Usage

neelamsaroha157
Valued Contributor II

Re: Rolling Yearly Usage

sum({$<TRX_DATE={">=$(=Date(addmonths(monthend(today()),-12),'MM-DD-YYYY'))<=$(=Date(addmonths(monthend(today()),0),'MM-DD-YYYY'))"}>}CNT_USAGE)

Try this, its the date format which is different from your field format.

Community Browser