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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
saivina2920
Creator
Creator

Getting error while passing variables in count expression

I am getting error while pass variables in count expression.

=count(DISTINCT if((Date(DueDate,'dd-mm-yyyy') - Today() > -5 and Date(DueDate,'dd-mm-yyyy') - Today() < 0) and (CURRENTSTATUS='NEW' and FROM='*BRITTA*' and TO={"$(vManufacturer)"}),DueDate))

Error comes in TO={"$(vManufacturer)"}

What is the problem in the above condition..?

Labels (2)
2 Replies
edwin
Master II
Master II

try using single quotes assuming the variable returns TEXT

TO={'$(vManuf)'}

edwin
Master II
Master II

hold on, is that your actual expression?  or the TO={..} in a set analysis?

if in set analysis, try what i suggested but if this is actually a condition in your IF statement, use TO = '$(vManufacturer)'