Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Wkong
Contributor
Contributor

Summary value for positive values only.

Hey experts,

I am currently having trouble with making a dashboard. Suppose I have these values.

Wkong_1-1685595795489.png

Where unsold is a calculation by subtracting the inventory by the number of orders.
How can I get the value on the KPI chart to display a summation of only the sum of the positive values?

Labels (2)
4 Replies
tresesco
MVP
MVP

Try something like:

Sum({<[Product number]={"=Sum(Inventory)-Sum(Order)>0"}>}(Inventory-Order))

Wkong
Contributor
Contributor
Author

Using this expression returns: Error in expression, Error in set modifier ad hoc element list: ',' or ')' expected.
Here is what I currently have.
Sum(
{<[Product Number]={Sum(Weight)-Sum([Quantity Kg])>0},
[Refrigration Code]={C},
[Service Kill Code]={NO},
Category={BEEF},
Prodsite={BEE,DIN,RDL,ROC,TOW},
Site={BEE,DIN,RDL,ROC,TOW,JBD,HEM}
>}
(Weight-[Quantity Kg]))

tresesco
MVP
MVP

Sum(
{<[Product Number]={"=Sum(Weight)-Sum([Quantity Kg])>0"},
[Refrigration Code]={C},
[Service Kill Code]={NO},
Category={BEEF},
Prodsite={BEE,DIN,RDL,ROC,TOW},
Site={BEE,DIN,RDL,ROC,TOW,JBD,HEM}
>}
(Weight-[Quantity Kg]))

BrunPierre
Partner - Master
Partner - Master

Try

RangeMax(Sum(Unsold), 0)