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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
hammermill21
Creator III
Creator III

Excluded value in a table

Hello,

I have a table that has barcodes listing along with other information. Now when the barcode is attached to a question Is this a retired barcode and the answer is yes, I want to exclude it from that table. How can I do that in Qlik Sense?

Capture.JPG

17 Replies
hammermill21
Creator III
Creator III
Author

Thanks Digvijay,

currently on my expression all I have is [Bar codes], which pulls in all the barcodes. How would I go about adding that?

Digvijay_Singh

Try adding new measure something like as below , and then hide this column, I think there is something in properties to hide it -

Sum({<retired barcode-={'Yes'}>} 1)



Digvijay_Singh

If you can share qvf sample, we can see what all it needs to make it work.

hammermill21
Creator III
Creator III
Author

I have attached it to my original message. I'm working with the table "Pending Inspections. All the ones that have a yes under Retired Barcode? I want to exclude.

Digvijay_Singh

I see a blank qvf, don't know if any error in attachment or something else.

hammermill21
Creator III
Creator III
Author

I attached it again, not sure what happened there.

Thank you again for looking over this for me!!

Digvijay_Singh

I could open it now, I thought of changing your count expression but it is dynamically generated from variable and the variables are loaded in script through variable.xls. So its not a good idea to change master measure when the need is to customize it in one table.

As a workaround I changed the Retired barcode? dimension to load only not yes values, to make it work I needed to deactivate 'allow null values' and zeroes in dimension and data properties.

If it is possible for you to use the variable expression directly in this table, it would not need to make the dimension as calculated dimension and the condition I suggested earlier can be incorporated in the measure expression.

Updated app is attached.

hammermill21
Creator III
Creator III
Author

Makes total sense! I've used the "not match" before but thought this was different. Thank you so much for your help!!!!