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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

AVG DAYS

Hi all i am trying to derive Avg Days using following expressions it works exactly the way i want but as soon as i add dimension  PRODDATE , the dimension PRODDATE is not visble pls help

AVG(AGGR(COUNT({<PRODDATE= {">=$(vStartDate)<=$(vLastDate)"},EDITION_CAT={'M'},PUBLICATION_TYPE={'DS'},EDTION_TYPE={'Newspaper'}>}DISTINCT

(PRODDATE)),STATE_LINK,LINKCITY1,PUBLICATION_TYPE,CITYSAT,PRODUCT_CONTANT_CATEGORY))

Thanks In advance

Vinayagam

4 Replies
swuehl
MVP
MVP

Sorry, I don't fully understand.

the dimension PRODDATE is not visible ... Where it is not visible? In which context are you using this expression?

You might consider adding the set expression also to the outer aggregation (avg() function).

Anonymous
Not applicable
Author

hi i am using this expression in Pivot table

DATE.png

awhitfield
Partner - Champion
Partner - Champion

Your expression is calculating over a date range, so how can there be a single PRODDATE?

Andy

Anonymous
Not applicable
Author

agreed sir

But is any possible way of doing it as i want to show both days as well as AVG over period of time

Thanking You

Vinayagam