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: 
sakshikaul
Creator II
Creator II

Expression is giving no result

paint.png

here in above image the datatype used in database is user defined ie Money. Now when I am writing an expression its not giving correct result. Following is the expression :-

=sum({< Sold_Date = {">=$(From)<=$(To)"} >}[inv value] )

can be seen in the below image

PAINT2.png
But if I am using expression as sum([inv value] its giving me correct answer

and for conversion I have used following in the script.

Date(vouch_date, 'YYYY-MM-DD') as Sold_Date,

Please help

24 Replies
sakshikaul
Creator II
Creator II
Author

can I use same function for sold_month

Month(Date(floor(vouch_date,'YYYY-MM-DD'))) as Sold_Month,

jyothish8807
Master II
Master II

Yes, you can. but like this:

I have fixed the bracket error.

Month(Date(floor(vouch_date),'YYYY-MM-DD')) as Sold_Month,

Best Regards,
KC
sakshikaul
Creator II
Creator II
Author

Here if I will add sold date as dimension in chart it will give correct result

paint.png

here if I will remove sold date from calendar its not giving correct result

PAINT2.png

lorenzoconforti
Specialist II
Specialist II

I think it's best if you share your application; load it with sample data if you can't share the whole data set

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Provide us your app - to protect your data:

Document properties > Scramble.