Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

ignore all selections except on some columns

Hello

I want to create an expression in which I want to ignore all selections in all fields except for 4 fields

I created the variable vCondition as follows:

=concat({1<$Field-={'Year','Month','Quarter','Country'}>} '[' & $Field & ']=',','))


then in my expression I wrote:

sum({<$(vCondition)>}Amount)


Now everything is working just fine

however the expression sum({<$(vCondition)>}Amount) has to be put in a variable called vSales


now if I put this variable on a chart and use it in the expression as $(vSales) then I get an error garbage after Month


Please advise on how to make this work just fine

I can walk on water when it freezes
3 Replies
Not applicable

This thread may help you: ignore all selections apart from 1 field

Nicole-Smith

Can you post a .qvw?  It will be much easier to get help that way.

Not applicable

Please upload QVW file its easy to solve.