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
tresesco
MVP
MVP

Your expression looks not right to me. There has to be some correction. Could you share a sample qvw explaining the required output?

amayuresh
Creator III
Creator III

Try this,

=sum({1<LinkDate={">=$(=MonthStart(AddMonths(vFROMDATE)) <=$(=MonthEnd(vToDate))"}, ISSUE_MOEVMENT_FLAG={1} >} ISSQTY)

amayuresh
Creator III
Creator III

Provide sample data

jonathandienst
Partner - Champion III
Partner - Champion III

How are the two variables defined? Are they in the same format as LinkDate?

You can combine the LinkDate filter criteria into a single set criterion.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable

Not Sure about your requirement ,you can try like this

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

engishfaque
Specialist III
Specialist III

Dear Abhay,

Try this one,

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

Kind regards,

Ishfaque Ahmed

tyagishaila
Specialist
Specialist

Hi Abhay,

If you are not getting desired output by this

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


than please share sample data. There may be another issue.


Cheers

abhaysingh
Specialist II
Specialist II
Author

Pls find the Sample Data

 

DateMaterialissueqty
01-01-15M150
02-02-15M210
02-01-15M10
03-01-15M40
05-02-15M4

10

here i select date range 01-01-15 to 03-01-15 the output shud be

DateMaterialissueqty
03-01-15M40

the logic is if KEY i.e Material is in the selected Date Range is =0 than it should show in the list only,

you can see Material M1 in two dates 01-01-15 and 02-01-15 the issue qty = 50 +0 , thats why it should not show.

Hope m clear

tyagishaila
Specialist
Specialist

What do you mean by

ISSUE_MOEVMENT_FLAG={1}