Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
khaycock
Creator
Creator

Expression only show null values in Pivot Table

I need an expression that only shows BIN where the QUANTITY = 0? I don't need any other fields to be displayed.

What kind of expression do I need?

1 Solution

Accepted Solutions
sunny_talwar

May be like this

Dimension

Bin

Expression

If(Sum(Quantity) = 0, 1, 0)

View solution in original post

7 Replies
Anil_Babu_Samineni

You mean to say this?

Only({<QUANTITY = {0}>}BIN)

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
sunny_talwar

May be like this

Dimension

Bin

Expression

If(Sum(Quantity) = 0, 1, 0)

khaycock
Creator
Creator
Author

When I use this as an expression, it returns the same amount for the BIN and the expression. I tried it as an dimension and it didnt work

khaycock
Creator
Creator
Author

This is just displaying 1 for everything? I only need to show BINS where the QUANTITY = 0?

sunny_talwar

Really? Even if use this if statement which says that only show 1 when Sum(Quantity) = 0, assign a 1, else a 0? Can you share an image after adding another expression

Dimension

Bin

Expression

If(Sum(Quantity) = 0, 1, 0)

Sum(Quantity)

Anil_Babu_Samineni

Can you show the image, And explain the result

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
khaycock
Creator
Creator
Author

Oops sorry that was my fault. You're right, thanks!