Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date Issue in Qlikview

Hi Team,

I have come across a requirement in which the the product X has a lag of 2 days.

So when i filter the report for Week = 9/9/2017, then the Product X must show values for the week 9/11/2017.

    

Filter appliedWeek:9/9/2017
Expected Output
X WeekWeekQTY
9/11/20179/9/2017100
9/11/20179/9/2017200
9/11/20179/9/2017300
original Output
X WeekWeekQTY
9/9/20179/9/201780
9/9/20179/9/201790
9/9/20179/9/2017110

Any help with this would be appreciated.

Thanks,

Harshala

11 Replies
sunny_talwar

Try this

=Sum({1<date={"$(=date(num(date)+1))"}>}Value)

or this

=Below(TOTAL Sum({1<date={"$(=date(num(date)+1))"}>}Value))


Capture.PNG

Anonymous
Not applicable
Author

Hi Sunny, i tried the below expressions earlier it doesn't work.

Sum({1<date={"$(=date(num(date)+1))"}>}Value)

also the other expression :

=Below(TOTAL Sum({1<date={"$(=date(num(date)+1))"}>}Value)) - doesn't work if i remove the date field.

Solution: i need ignore the date selection

Sum({< weekdate = {"$(=date(Num(Weekdate)+2,'MM/DD/YYY'))"} ,date= >}QTY)