Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

New Contributor III

expression issue with averages



I am having issues with a expression

Currently my expression is the following: 

=if(ReleaseDate >= date(08/08/2019,'MM/DD/YYYY'),sum(MissingCounts),'n/a')

The goal is to find the average MissingCounts of the past two weeks of data. 

When I run the report I am getting a  '-' for an answer. I believe this is a miscalculation issue. Something like dates and numerical value being compared with no defined answer.  All included data for the report has data so I am seeing > 0 for all included data used in MissingCounts. 




2 Replies

Re: expression issue with averages

Try using date# instead of date, since you want to convert the text to date and not the other way around

Contributor II

Re: expression issue with averages

=sum({<ReleaseDate {'>=08/08/2019'} >}MissingCounts)