Qlik Community

Ask a Question

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

March 11, 2PM EST: Do More with Qlik - Getting Started wtih Qlik Sense SaaS - Redux. REGISTER NOW
Showing results for 
Search instead for 
Did you mean: 

error while computing dynamic date range


I am getting error while computing for dynamic date range.

I am using below code format,

If(GetSelectedCount(Date) <>1,

default date value computation,

dynamic date range


for computing values i am using pick(wildmatch(variablename) , code)

It is working fine for default date range but as soon as i select any date in date filter pane ,

I get value computed only for the selected date but not for other dates.

I have attached the snippets of both.

Code :

If(GetSelectedCount(Date) <>1,

Pick(Wildmatch(Month_year ,$(vMaxmonth)),

sum({< Date = {"$(='$(vMaxdate)')"} , Location = {"Onsite"}>}abc)/sum({< Date = {"$(='$(vMaxdate)')"},Location = {"Onsite"} >} xyz),

sum({< Date = {"$(=$(vPrevMon))"} , Location = {"Onsite"}>}abc)/sum({< Date = {"$(=$(vPrevMon))"},Location = {"Onsite"} >}xyz)


0 Replies