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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
asilvaroli
Contributor
Contributor

definition expression data included

Hello, i have a problem.

I don't know which of two Versions of the expression is correct.

The first is:

=count({$<[DURATA PREVISTA RICOVERO]={'>0'},[GIORNI EFFETTIVA - PREVISTA]={'>-10'} , [GIORNI EFFETTIVA - PREVISTA]={'<-4'},[CSA RICEVENTE]={'Residenza1’ }>}[StrutturaInviante])

The second expression is:

=count({$<[DURATA PREVISTA RICOVERO]={'>0'},[GIORNI EFFETTIVA - PREVISTA]={'>-10<-4'},[CSA RICEVENTE]={'Residenza1’}>}[StrutturaInviante])

So, can you help me?

Thanks a lot

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Second one should be right

=count({$<[DURATA PREVISTA RICOVERO]={'>0'},[GIORNI EFFETTIVA - PREVISTA]={'>-10<-4'},[CSA RICEVENTE]={'Residenza1’}>}[StrutturaInviante])

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

Second one should be right

=count({$<[DURATA PREVISTA RICOVERO]={'>0'},[GIORNI EFFETTIVA - PREVISTA]={'>-10<-4'},[CSA RICEVENTE]={'Residenza1’}>}[StrutturaInviante])

Anil_Babu_Samineni
MVP
MVP

Or May be create two variables for vGreater = -10 and vLess = -4

Then call like below

=count({$<[DURATA PREVISTA RICOVERO]={'>0'},[GIORNI EFFETTIVA - PREVISTA]={'>$(vGreater)<$(vLess)'},[CSA RICEVENTE]={'Residenza1’}>}[StrutturaInviante]) // This won't give any performance diff. For understand i've taken into variables

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful