Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Identifying a Selection in a Cyclic Group

Hi all. Thanks so much for your help in the past. I've got another question I can't find the answer to right off.

I've got a cyclic group that switches between two values, Country and Device. I need to know whether the user has selected Country or Device so that I can change something in the expression calculation. How can I tell which selection the user has made?

Thanks,

Scott

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I guess you're asking about this:

GetCurrentField( groupname )

View solution in original post

3 Replies
Anonymous
Not applicable
Author

I guess you're asking about this:

GetCurrentField( groupname )

Not applicable
Author

Hey Michael,

Thanks for the response. I tried it, but it doesn't work. Here's the expression I tried:

Sum(If((FLAG_VALUE='BYCOUNTRY' And GetCurrentField([Country/Device])='Country'), ALL_VISITS,0))

The cyclic group is called Country/Device and the two values are Country or Device.

Do you see any issues with the syntax?

Thanks,

Scott

Not applicable
Author

I figured it out. I was using the label Country and not the actual field name. Thanks for the help, Michael.

Scott