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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

GetFieldSelections() usando valores não selecionados

Boa Tarde,

Necessito de uma ajuda. Preciso saber os valores "NÃO" selecionados de um determinado filtro. É possível???

GetFieldSelections.JPG

Necessito saber os meses não selecionados para fazer uma análise diferente.

Preciso que a variável retorne "OUT, NOV, DEZ" sem o NOT

Obrigado

7 Replies
Anonymous
Not applicable
Author

No worry, Qlik current selection does this..

Any way it wud not harm your data or analysis.

You can set the length of your current selections...

PFA..

tresB
Champion III
Champion III

Like:

=Concat(DISTINCT{1<MonthField=E(MonthField)>}MonthField, ',')

So, variable definition becomes like:

vNotSelectedMonths='NOT ' & Concat(DISTINCT{1<MonthField=E(MonthField)>}MonthField, ',')

Not applicable
Author

It work's, thank you!!!! Excelent!!!!

There is a away, when i select "only" 1 month, for example "Set", qlikview will retrieve me the months lower than "Set" in one variable vLowerMonths, and in another variable vHigherMonths????

Thanks!!

Not applicable
Author

Still have a little problem, it returns "dez, nov, out" how i can use this values to apply another filter???

When i use the variable "vNotSelectedMonths" as a month filter it wont work...

Thank you.

tresB
Champion III
Champion III

Say you want sum of sales for those Note Selected/Excluded values. Then use expression like:

Sum({<MonthField= - $:: MonthField>}Sales)

tresB
Champion III
Champion III

Or, for variable way, create variable like:

vExcludedValues=Chr(39)&Concat(DISTINCT{1<MonthField=E(MonthField)>}MonthField, chr(39)&','&chr(39))&chr(39)

Then in the expression try like:

Sum({<MonthField={$(vExcludedValues)}>}Sales)

Not applicable
Author

Thank you... it is correct now!!!!!

Excelent