Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Why is the result of my expression 0?

Hi, everyone, I'm a beginner in learning qlik, and on sense desktop I had a problem doing an exercise with an example: when I created a table and wrote an expression in it, my results were different from those in the example, but our scripting language, expressions, and data They are all the same.

37c5d7157dba81a999fd0344f15adec.png

63679fd7324d41271e36e574944eaf7.png

and this is my  expression :sum({<TxDate={'2016*'}>} SalesAmount)

1 Solution

Accepted Solutions
arvind1494
Specialist
Specialist

Try This

sum({<TxDate={">=$(=makedate(2016,01,01))<=$(=makedate(2016,12,31))"}>} SalesAmount)

View solution in original post

5 Replies
arvind1494
Specialist
Specialist

Because TxDate is date

and qlik consider date as numeric field not string

arvind1494
Specialist
Specialist

Try This

sum({<TxDate={">=$(=makedate(2016,01,01))<=$(=makedate(2016,12,31))"}>} SalesAmount)

Anonymous
Not applicable
Author

Thank you very much. Your answer perfectly solved my problem.

petter
Partner - Champion III
Partner - Champion III

Please mark the answer as correct to close the thread

arvind1494
Specialist
Specialist

Welcome

Please close the thread