Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
orangebloss
Creator
Creator

Using Index with Getfieldselection and 'Show measure if'

I have a chart that I'm using the show measure if formula :

 

index(GetFieldSelections(SevenDayTaskCompletionTimeStatus),'Complete') or GetSelectedCount(SevenDayTaskCompletionTimeStatus)=0

 

This works fine for most permutations (Overdue, not due etc), however I have 2 similar values - 'Complete' and 'Complete - Unknown Due Date'. It looks as though the index is returning only those with a 'Complete' status - is there a way to get it to look for a specific text string to prevent this or is there a better way to show values when they are selected (could be multiple values selected) or when nothing is selected?

 

When 'Complete - Unknown Due Date' is selected the chart is displaying the complete ones only:

orangebloss_0-1733241295195.png

 

Labels (3)
1 Solution

Accepted Solutions
Kushal_Chawda

@orangebloss  try below

Index('|'& GetFieldSelections(SevenDayTaskCompletionTimeStatus) & '|','|Complete|')

View solution in original post

2 Replies
Kushal_Chawda

@orangebloss  try below

Index('|'& GetFieldSelections(SevenDayTaskCompletionTimeStatus) & '|','|Complete|')
orangebloss
Creator
Creator
Author

Thanks @Kushal_Chawda - Seems to have done the trick!