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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sakshikaul
Creator II
Creator II

chart expression

Hi

i want when user selects date from 1st june 2018 till 30th june 2018 MRP daily achievementss should depict sales for only 30Th june 2018 and further cumulative sales for entire selected date range ie1 st june 2018 till 30th june 2018.Following is the expression but its not working correctly

=num(sum({<Sold_Date = {"<=$(To)"} >}[sales price]* quantity_sold)

-

sum({<Sold_Date = {"<=$(To)"} >}[sales price]* quantity_returns)

what all changes are required in this expression?

Paint1.png

5 Replies
qlikviewwizard
Master II
Master II

Can you attach the sample data and expected result?

sakshikaul
Creator II
Creator II
Author

I can explain you in more detail.

i want suppose the user selects starting date as 1st June and end  date as 30th june 2018 so i want to write an expression

For which the data for 30th june (end  date) should only be depicted  in charts , so under MRP daily achievements the sale for 30th june 2018(end date should only be depicted)

=num(sum({<Sold_Date = {"<=$(To)"} >}[sales price]* quantity_sold)

-

sum({<Sold_Date = {"<=$(To)"} >}[sales price]* quantity_returns)

what all changes are required in this above expression?

sakshikaul
Creator II
Creator II
Author

stalwar1‌ Please help

Anil_Babu_Samineni

Might date format issue for variable, does solddate and variable results same?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
qlikviewwizard
Master II
Master II

Your question is a big challenge to understand.So please provide sample data and expected result.