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

How to replace 0 values with - in qlikview?

Hi

I want replace all my 0 values with - ??

Can anyone help me out

Thanks in advance,

soumya

1 Solution

Accepted Solutions
Not applicable
Author

Hi soumya,

if you want to replace your values with zero then you can use

if(sum(sales)=0,'_',sum(sales)),

Here sum(sales) can be replaced with any value you want to check,

but if you dont want to show the values in the chart, you can go the presentation tab and put the checkbox on the suppress zero values.

if you want it in the script the above formula will do the work.

With Regards

Harshita Gaur

View solution in original post

6 Replies
Not applicable
Author

can anyone reply soon?

Not applicable
Author

Hi,

try this

If(fieldvalue=0,'-',Fieldvalue) as new_fieldname

Not applicable
Author

Hi soumya,

if you want to replace your values with zero then you can use

if(sum(sales)=0,'_',sum(sales)),

Here sum(sales) can be replaced with any value you want to check,

but if you dont want to show the values in the chart, you can go the presentation tab and put the checkbox on the suppress zero values.

if you want it in the script the above formula will do the work.

With Regards

Harshita Gaur

ashfaq_haseeb
Champion III
Champion III

Like this

Regards

ASHFAQ

sakamsureshbabu
Creator
Creator

go presentation tab there you have "null symbol"

vikasmahajan

In Dimension you can press supress null option to avoid null or zero values in chart

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.