Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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

try with quotes

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

View solution in original post

1 Reply
Kushal_Chawda

try with quotes

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