Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
israelcsouza
Contributor III
Contributor III

Set Analysis X GetFieldSelection

Bom dia a todos,

Aconteceu a seguinte situação em um painel que estou desenvolvendo, se alguém puder me ajudar com esta duvida agradeço.

Fiz uma expressão, da seguinte forma,

AVG({<SK_UNIDADE_NEG={$(vNR_UNIDADE_N1)}>}VL_META)

onde o meu campo SK_UNIDADE_NEG recebe valores selecionados através de uma variável, esta variável utilizei o código para selecionar os campos da seguinte forma, GetFieldSelections(CD_UNIDADE_NEG). Até ai funciona, mas quando faço uma seleção no painel que passa de 6 opções selecionadas acontece o problema.


até Seis Seleções  expressão fica da seguinte forma: 1,2,3,4,5,6 ---> OK

Mais de 6: 7 de 14 ----> Nok

Alguém conhece alguma forma de tirar este padrão de seleção do Qlikview, ou outra forma de selecionar os dados?

Desde já agradeço.

Labels (2)
1 Solution

Accepted Solutions
maxgro
MVP
MVP

maybe you need to set the third parameter of GetFieldSelection, this is from Qlik online help

getfieldselections ( FieldName [, ValueSep [, MaxValues [, State]]])

Returns a string with the current selections in a field. It is possible to query an alternate state.

ValueSep is the separator to be put between field values. The default is ', '.

Maxvalues is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6.

View solution in original post

2 Replies
maxgro
MVP
MVP

maybe you need to set the third parameter of GetFieldSelection, this is from Qlik online help

getfieldselections ( FieldName [, ValueSep [, MaxValues [, State]]])

Returns a string with the current selections in a field. It is possible to query an alternate state.

ValueSep is the separator to be put between field values. The default is ', '.

Maxvalues is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6.

israelcsouza
Contributor III
Contributor III
Author

Thanks Maxgro, Problem solved.