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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sakshikaul
Creator II
Creator II

expression not giving correct result

Hi All

In the below chart I want when user selects date range From calender  then sales for entire date range should be depicted in chart

Here In MRP daily Target sale is coming out to be 0

Following expression is used

=num(sum({<Sold_Date={">=$(From)<=$(To)"} >}DISTINCT Budget))

What all changes  are required in expressionPaint1.png

6 Replies
neelamsaroha157
Specialist II
Specialist II

try removing the $ sign from 'From' and 'To' variables.

Test the value in a text box to confirm that the values in the variables match the Sold_Date format.

sakshikaul
Creator II
Creator II
Author

STILL SAME PROBLEM EXISTS

jayanttibhe
Creator III
Creator III

Hi,

There is two special operators called precedes and follows that could be used in your case I think:

https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/Operators/Rela...

Try this ::

=num(sum({<Sold_Date={"'$(From)' precedes '$(To)'"} >}DISTINCT Budget))

sakshikaul
Creator II
Creator II
Author

Hi

Its not giving result

From this expression

=num(sum({< Sold_Date = {">=$(=From)<=$(=To)"} >}DISTINCT Budget),'#,##0.0')

I am getting values but all are same under MRP daily target heading. so here values should be distinct so what all changes are required Paint1.png

jayanttibhe
Creator III
Creator III

Sample QVW please.

qlikviewwizard
Master II
Master II

Best way to get the better and quick solution is providing sample data and expected result.Thank you.