Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
hkg_qlik
Creator III
Creator III

Text Object (Exp)

Hi,

I am trying to use following expression in the text box expression box. But its not working for me.

vCurrentMonth holds the Current Month Info and I want to display the count of the personID when the Create Date Month = vCurrentMonth (i.e June)

=vCurrentMonth & '=' =count({$<[Created Date Month] = {"=vCurrentMonth"}>} DISTINCT [Person ID])

1 Solution

Accepted Solutions
Not applicable

hi hkghandi

1) you don't need an "=" before the first count expression

2) then another ampersand to concatenate the rest of the string

2) you need a dollar sign expansion in the bit that defines the set. Try:

=vCurrentMonth & '=' & count({$<[Created Date Month] = {$(=vCurrentMonth)}>} DISTINCT [Person ID])

Regards,

Erica

View solution in original post

2 Replies
Not applicable

hi hkghandi

1) you don't need an "=" before the first count expression

2) then another ampersand to concatenate the rest of the string

2) you need a dollar sign expansion in the bit that defines the set. Try:

=vCurrentMonth & '=' & count({$<[Created Date Month] = {$(=vCurrentMonth)}>} DISTINCT [Person ID])

Regards,

Erica

hkg_qlik
Creator III
Creator III
Author

Thanks a lot Erica!