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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jalanhart
Creator
Creator

Dimensions not filtering with variable

Hello, 

I have a variable that sums a field filtered down by certain dimensions. Currently I have a measure in the table which uses a pick(match) that applies set analysis measures based on the variable button selected. 

Example here Sum({<TRANSACTION_CODE = {'OESHIP','SHIPTRAN'}>} QUANTITY)

The issue is that when this button is selected, it still shows other codes with a 0 in the measure column. I do not want remove the zeros through the data handling because that could filter too much. 

The table should only show rows with OESHIP and SHIPTRAN but it's showing more than that. 

jalanhart_0-1739494095116.png

 

 

How do I get those rows to NOT show up based on a variable selection?

 

 
Labels (2)
3 Replies
Anil_Babu_Samineni

Perhaps try this?

Sum({<TRANSACTION_CODE = P({<TRANSACTION_CODE = {'OESHIP','SHIPTRAN'}>} TRANSACTION_CODE)>} QUANTITY)

Or

Sum({<TRANSACTION_CODE = {"=Sum({<TRANSACTION_CODE = {'OESHIP','SHIPTRAN'}>} QUANTITY)>=0"}>} QUANTITY)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
morgankejerhag
Partner - Creator III
Partner - Creator III

Go to the chart settings -> Add ons -> Data handling -> untick Include zero values

Chanty4u
MVP
MVP

Try this 

=If(Match(TRANSACTION_CODE, 'OESHIP', 'SHIPTRAN'),

      Sum({<TRANSACTION_CODE = {'OESHIP','SHIPTRAN'}>} QUANTITY)

)