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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

Logic Help

HI Guys need some help in logic,

this is the logic below,

sum({<LinkDate,LinkDate={'>=$(vFROMDATE)'},LinkDate={'<=$(vToDate)'}, ISSUE_MOEVMENT_FLAG={1} >} ISSQTY)

in this i am getting few values 0,

with respect to key PLANT+MATRIAL, if ISSQTY >0 than it should not display in the report.

what whould be the logic pls suggest

13 Replies
amayuresh
Creator III
Creator III

I think due to your condition it is not showing any value.

As per your requirement, I am using expression as

=if(sum({<MyDate={">=01-01-15 <=02-01-15"}>} issueqty)=0,1)

if we consider date range 01-01-15 and 02-01-15, then there is no material having sum of issueqty is 0.

So it is not showing any output.

if we consider date range 01-01-15 and 03-01-15, then there is material M4 having sum of issueqty is 0.

So it is showing in output.

Not applicable

Hi Abhay,

One field should be referenced only once in set analysis. so ,

LinkDate={'>=$(vFROMDATE)'},LinkDate={'<=$(vToDate)'}, is not correct

instead it should be : LinkDate={">=$(vFROMDATE) <=$(vToDate)"}

Also, you should aggregate the sum of issueqty wrt Material.

You can try this:

=Aggr(<Your Expression> ,Material)

In this case,

=Aggr(Sum ({<LinkDate={'>=$(vFROMDATE)<=$(vToDate)'}, ISSUE_MOEVMENT_FLAG={1}>} ISSQTY),Material)

abhaysingh
Specialist II
Specialist II
Author

it is not giving me desired output, could you take the sample data and provide me the qvw pls

tresesco
MVP
MVP

May be like:

= Sum({<LinkDate={"=Sum({<LinkDate={'>=$(vFromDate)<=$(vToDate)'}>} issueqty)=0"},

Material=e({<LinkDate={"=Sum({<LinkDate={'>=$(vFromDate)<=$(vToDate)'}>}issueqty)>0"}>})>} issueqty)

Untitled.png