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

How to condition a simple expression

Hello,

I am sure this is a silly-easy question but I am new and learning to please be patient :

I have the following expression in a Pivot Table Chart with Sales and Day\Month\Year dimensions (among others) : 


Sum (sales) - Above (Sum (Sales))

How Can I add a condition that when sum (sales) = 0  than  either show an error or do not show any value for the expression in the Chart

(Since when Sum can not be zero, it indicate the data was not loaded in that Date)

(Sum (sales) - Above (Sum (Sales)))

Thank

Nir 

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Something like.

If(Sum (sales) - Above (Sum (Sales))<>0, Sum (sales) - Above (Sum (Sales)), 'Not Avail.')

View solution in original post

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Something like.

If(Sum (sales) - Above (Sum (Sales))<>0, Sum (sales) - Above (Sum (Sales)), 'Not Avail.')

sunny_talwar

May be this:

If(Sum(sales) <> 0, Sum(sales) - Above(Sum(Sales)))