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: 
Not applicable

Pivot Chart sub total value details

In Pivot chart, I have dimension (location,item) , expressions(quantity,value). Here, I have value but quantity is zero for some items. I need to cut this value when quantity is zero. after that sub total(show partial columns - by checked) is having the total value(including value of zero quantity). So please give me suggestions.

my expression for Qunatity is == sum(PQTY-MQTY)

my expression for Value is == sum(PSTOCKVALUE-MSTOCKVALUE)

Expecting your reply.

Thanks

Kumar

17 Replies
rohit214
Creator III
Creator III

hi

try this

in Script:

if(Qty=0 0r isnull(Qty='-1'),'0','1') as Flag

in expression:

sum(Qty*Flag)

Sum(Value*Flag)

may it hepls you

thanks

rohit

Not applicable
Author

flag expression is giving error

pls chk.

rgds

kumar

Not applicable
Author

Hi,

try this..

if(Qty=0 0r isnull(Qty),'0','1') as Flag

Hope that is fine...

Not applicable
Author

Hi,

try this..

if(Qty=0 0r isnull(Qty),'0','1') as Flag

Hope that is fine...

Not applicable
Author

while reloading it is showing error.

kumar

Not applicable
Author

The expression is correct only .. unless u have the Qty field in the table it will throw an error..

* if(Qty=0 0r isnull(Qty='-1'),'0','1') as Flag

Not applicable
Author

while reloading expr is giving error

kumar

Not applicable
Author

pls give me sugesstions

kumar