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: 
shirleyc40
Creator
Creator

Date equality in count expression with variable

Hi. I'm trying to count the number of customers with status = "pending"  and lastvisitdate = last business day. I have this expression: 

Count ({<applicant_status = {'Pending Mail'}, app_date = { $(lastBusDay) }>} distinct Customer_Number)

where lastBusDay =Firstworkdate(date#('7/26/2019')-1, 1) . But the expression above is not correct. How do I use a variable in a set expression?

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

try with quotes

Count ({<applicant_status = {'Pending Mail'}, app_date = { "$(lastBusDay) "}>} distinct Customer_Number)

View solution in original post

1 Reply
Kushal_Chawda
MVP
MVP

try with quotes

Count ({<applicant_status = {'Pending Mail'}, app_date = { "$(lastBusDay) "}>} distinct Customer_Number)