Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

5 Replies
rustyfishbones
Master II
Master II

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

Not applicable
Author

Nope, it does not work.

Clever_Anjos
Employee
Employee

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

rustyfishbones
Master II
Master II

maybe yes

Not applicable
Author

It works...Thanks