Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis

Hi All,

I have a variable vCurrentWave=getfieldselections(CurrentWave)

In expression i am trying to get the count.

=Count({$<WAVE={'$(vCurrentWave)'}>}MYSTERY_SHOPPER)

Also i tried

=Count({$<WAVE={$(vCurrentWave)}>}MYSTERY_SHOPPER)

=Count({$<WAVE={'=$(=vCurrentWave)'}>}MYSTERY_SHOPPER)

if i pass the value directly as below i am getting the count

=Count({$<WAVE={'WAVE2'}>}MYSTERY_SHOPPER)

i tried to display the variable value in text object it is displaying the value as WAVE2

Using the variable i am not getting the result.

Thanks.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Provide sample plz

View solution in original post

7 Replies
Not applicable
Author

Try  this

=Count({$<WAVE={$(=vCurrentWave)}>}MYSTERY_SHOPPER)  // not checked the syntax error yet.. but give it a quick try please


ali_hijazi
Partner - Master II
Partner - Master II

Count({$<WAVE={vCurrentWave}>}MYSTERY_SHOPPER)

I can walk on water when it freezes
MayilVahanan


Hi

Try like this

Variable: vCurrentWave

Value:     getfieldselections(CurrentWave) // remove = assign

In text box, try like this $(vCurrentWave)

=Count({$<WAVE={$(vCurrentWave)}>}MYSTERY_SHOPPER)

or

=Count({$<WAVE={'$(vCurrentWave)'}>}MYSTERY_SHOPPER)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Thank you for your reply. It doesn't work

Not applicable
Author

Thank you for your reply.

Syntax issue

MK_QSL
MVP
MVP

Provide sample plz

Not applicable
Author

Hi Manish,

Your answer worked for me.

=Count({$<WAVE={$(=$(vCurrentWave))}>}MYSTERY_SHOPPER)

Thanks a lot. (By mistake i delete one of my reply)