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

Expression going to zero

i have a table - i only want to include where the 'Team' field contains 'GB' - at the moment i do:

=[Team] like '*GB*'

and the values go to 0 and -1

what is the correct way of doing this

Labels (1)
3 Replies
Brian_C
Contributor III
Contributor III

Not too sure if this is the answer you are looking for but if you wanted to sum a value where the Team equals GB then using set analysis you could try Sum({<Team={'GB'}>}[Value Field]) and this will sum your value field for Team GB only. If I have misunderstood your requirement please provide a little more detail and will try to assist.

Kindest regards

Brian

nickmarlborough
Contributor III
Contributor III
Author

it shouldnt be a sum. 

 

It should be considered a simple filter on the column to only filter in those with GB and exclude other strings

Brian_C
Contributor III
Contributor III

OK. In that case you could create a calculated dimension such as If(Match(Team,'GB'),Team) and this will only display the one Team. Hope this helps.