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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
vijayit43
Creator
Creator

Date Range FIlter.

Hi Expert,

              My Data Model is Given Below and one end date is 20 dec 2015 we want to sum those customer data which posting date is greater then Approve Date and less than given date '20 dec 2015' how  to use expression please suggest.

    

CustomerCodeApproveDatePosting DateQty
CUST/000015/12/20156/12/201510
CUST/000026/12/20155/12/20158
CUST/000026/12/20158/12/201510
CUST/000026/12/201511/12/201510
CUST/0000310/12/20157/12/20158
CUST/0000310/12/20158/12/201510
CUST/0000310/12/201515/12/20159
CUST/0000310/12/201518/12/201512
Labels (1)
1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Try, if your customer code is your dimension..

=Sum ({<[Posting Date]={"> $(=Date([ApproveDate]))<20/12/2015"}>}Qty)

You can create one variable with inputbox, then you can use variable in the expression..

View solution in original post

6 Replies
settu_periasamy
Master III
Master III

Try, if your customer code is your dimension..

=Sum ({<[Posting Date]={"> $(=Date([ApproveDate]))<20/12/2015"}>}Qty)

You can create one variable with inputbox, then you can use variable in the expression..

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try Sum( If([Posting Date] > [ApproveDate] and [Posting Date] < MakeDate(2015,12,20), Qty))


talk is cheap, supply exceeds demand
manishchandra_j
Contributor III
Contributor III

Hi Gysbert,

Can we achieve same with set analysis? If yes then what will the expression?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I don't think that can be done with the data you posted. See this document for an explanation: set_analysis_intra-record.qvw


talk is cheap, supply exceeds demand
manishchandra_j
Contributor III
Contributor III


Awesome!! Thanks a ton Gysbert!!

vijayit43
Creator
Creator
Author

Hi settu_periasamy,

                              When we select One Customer then Its Work Fine But When Multiple Customer in Dimension then Sum All Record please Suggest.