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: 
mikegrattan
Specialist
Specialist

Using GetFieldSelections() to return available values from a field after selections are made in another field

I'm wondering if it's possible to use GetFieldSelections() in the following way:

  • I have a 'flag' dimension that is set up in the data load script as: if(date(date#("CLDATE",'MMDDYY')) >= Today()-28,1,0) as Flag_PastMonth
  • When I select Flag_PastMonth = 1 in a sheet, there may be more than one YearPeriod represented, such as 2024-8 and 2024-9.
  • I would like the function GetFieldSelections("YearPeriod") to return 2024-8 and 2024-9, but since these values are not actually selected, it returns nothing.

Thank you for any advice.

Labels (1)
1 Solution

Accepted Solutions
marksouzacosta
MVP
MVP

Hi @mikegrattan 

What about using something like:

=Concat([YearPeriod],',')

 

Regards,

Mark Costa 

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

View solution in original post

2 Replies
marksouzacosta
MVP
MVP

Hi @mikegrattan 

What about using something like:

=Concat([YearPeriod],',')

 

Regards,

Mark Costa 

Read more at Data Voyagers - datavoyagers.net
Follow me on my LinkedIn | Know IPC Global at ipc-global.com

mikegrattan
Specialist
Specialist
Author

I tried Concat but got repeating values. However, Concat(distinct YearPeriod,',') works fine.  Thanks.