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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

One expression question

Hi guys,

I have an expression..

Sum (if (IsPurchase = 1,  Amount)

it works fine but i need to do it more...

the way it works is...

wherever IsPurchase = 1 it shows the Amount and shows 0 for others...

what i need is to show blank instead of 0 when conditions do not match.

I tried null() and text(null()) but it still is showing 0.

Can I achieve what I want?

Regards,

Saurabh

Labels (1)
5 Replies
rustyfishbones
Master II
Master II

Sum (if (IsPurchase = 1,  Amount,' ')

Not applicable
Author

Nope, it does not work.

Clever_Anjos
Support
Support

maybe if(IsPurchase = 1,sum(Amount),'') can work

rustyfishbones
Master II
Master II

maybe yes

Not applicable
Author

It works...Thanks