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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
razvan_brais
Creator III
Creator III

Previous date value

Hey guys.

I have a question. Is there a way to get in expression the previous date value?

If I have these dates :

21/03/2018

20/03/2018

19/03/2018

17/03/2018

And I would like to have this result

CurrentPrevious
21/03/201820/03/2018
20/03/201819/03/2018
19/03/201817/03/2018
17/03/2018-

Thank you,

Razvan

15 Replies
razvan_brais
Creator III
Creator III
Author

Kind of ,

But with only two columns : Current date(the date I select) , and Previous date ( previous date for selected date)

razvan_brais
Creator III
Creator III
Author

Do you have the solution?

fvelascog72
Partner - Specialist
Partner - Specialist

Hi,

Try in expression:

sum({<HIST_DATE = {'>=$(=Date(Only(HIST_DATE)-1))'}>}Value)/1000

Saludos.

razvan_brais
Creator III
Creator III
Author

I don`t need values for each KPI for previous day. I need to put as column header , Previous Date for previous values.

HIST_DATE - 1 won`t work because there is a gap between 26 and 24.

When I select 26 , the previous DATE should be 24 not 25

sunny_talwar

May be try this

=Max({<HIST_DATE = {"$(='<' & Max(HIST_DATE))"}>}HIST_DATE)

Capture.PNG

razvan_brais
Creator III
Creator III
Author

This is perfect.

Many thanks