Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Analyst240
New Contributor III

expression issue with averages

Hello,

 

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. 

 

Thanks

 

2 Replies
Partner
Partner

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

Highlighted
bharathadde
Contributor II

Re: expression issue with averages

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