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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Channa
Specialist III
Specialist III

SetAnalysis


= if(date(VOYAGE_ARRIVAL_DATE,'DD-MM-YYYY')> date(CONTAINER_DISCHARGE_DATE,'DD-MM-YYYY'), count({<HoursVoyageArrivalToContainerDischarge={">=2"}>} distinct DECLARATION_NO))

 

i am trying to count based on two conditions , it is not counting 

 

below is working i tried similar with by DB it give me -
= if(today()> today()-1, count({<HoursVoyageArrivalToContainerDischarge={">=2"}>} distinct DECLARATION_NO))

 

any help 

Channa
2 Replies
tresB
Champion III
Champion III

Context is important to propose a solution. Could you share your sample app with expected output description?

pradosh_thakur
Master II
Master II

It is not really clear what you want to achieve but if your second expression is working may be you have issue with date format.

Assuming you are using this in a table. If your date field is in string format use date# to convert them into dates first
date#(date_field,date_format)
Learning never stops.