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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Error in Expression

Dear Friends

The following expression does not work

if(RENEWABLE>0,count(DISTINCT {<EDATE={"=$(vFdate)"}>}POLICY_NO))

Pls help me to correct it

1 Solution

Accepted Solutions
sunny_talwar

Or this

Count(DISTINCT {<EDATE={"$(vFdate)"}, RENEWABLE = {'>0'}>} POLICY_NO)

or with equal sign

Count(DISTINCT {<EDATE={"$(=vFdate)"}, RENEWABLE = {'>0'}>} POLICY_NO)

View solution in original post

6 Replies
ecolomer
Master II
Master II

But do you have a mistake Or does not give the results...

ecolomer
Master II
Master II

Check the date formats. Usually this is a common problem.

Kushal_Chawda

try this

if(RENEWABLE>0,count(DISTINCT {<EDATE={"$(=vFdate)"}>}POLICY_NO))

vinieme12
Champion III
Champion III

Maybe

count(DISTINCT {<EDATE={"$(vFdate)"}>}  if(RENEWABLE>0,POLICY_NO))

or

count(DISTINCT {<EDATE={"$(=vFdate)"}>}  if(RENEWABLE>0,POLICY_NO))


or


count(DISTINCT {<EDATE={"$(vFdate)"}, POLICY_NO={"=RENEWABLE>0"}  >}  POLICY_NO)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
sunny_talwar

Or this

Count(DISTINCT {<EDATE={"$(vFdate)"}, RENEWABLE = {'>0'}>} POLICY_NO)

or with equal sign

Count(DISTINCT {<EDATE={"$(=vFdate)"}, RENEWABLE = {'>0'}>} POLICY_NO)

Not applicable

May be

count({<RENEWABLE={'>0'}, EDATE={$(vFdate)}>} Distinct policy_no)