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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
geam1988
Creator
Creator

How to display only positive value in the report ?

Hi,

Expressions

Order Quantity = Sum(EKPO.MENGE)

Arrived Quantity =  sum({<EKBE.BWART = {'101'}>}EKBE.MENGE)-sum({< EKBE.BWART = {'102'} >}  EKBE.MENGE)

Difference Quantity   = $(vdiffmenge)


Variable

vWE-Menge  = sum({<EKBE.BWART = {'101'}>}EKBE.MENGE)-sum({< EKBE.BWART = {'102'} >}  EKBE.MENGE)
vdiffmenge    = Sum (EKPO.MENGE) - ($(vWE-Menge) )

I have this report

in the report i do not want to show any negative quantity and (0) quantity.   i just want to show only positive value.

i want to show like this,

Please do not hesitate to contact me if you have any question.

1 Solution

Accepted Solutions
sibin_jacob
Creator III
Creator III

Write the expression like below


Order Quantity

if($(vdiffmenge)>0,Sum(EKPO.MENGE),0)


Arrived Quantity

if($(vdiffmenge)>0,$(vWE-Menge) ,0)


Difference Quantity

if($(vdiffmenge)>0,$(vdiffmenge) ,0)


Then go to Presentation tab -> suppress zero values


Thanks,

Sibin

View solution in original post

2 Replies
Chanty4u
MVP
MVP

try to add this in your expression

Sum({<Measur= {'>0'}>}Measure)

sibin_jacob
Creator III
Creator III

Write the expression like below


Order Quantity

if($(vdiffmenge)>0,Sum(EKPO.MENGE),0)


Arrived Quantity

if($(vdiffmenge)>0,$(vWE-Menge) ,0)


Difference Quantity

if($(vdiffmenge)>0,$(vdiffmenge) ,0)


Then go to Presentation tab -> suppress zero values


Thanks,

Sibin