Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
harrywu1
Contributor III
Contributor III

Create DoD comparison chart, with dates in text format?

Hi Qlikview experts,

I've got a set of data like below, where DATE is in text format, and OUTPUT is in numbers.

I intend to create a line chart showing the DoD (Day-over-Day) change ratio, e.g. (20180624-20180623) / (20180623)

Because DATE is in text format, the date functions don't work, I assumed.

My expressions is below, but doesn't work..      Need your big hands!  Thanks~!

( sum({< DATE ={'$(=DATE)'}>} OUTPUT) - sum({< DATE ={'$(=(DATE) -1)'}>} OUTPUT) )

/

sum({< DATE ={'$(=(DATE) -1)'}>} OUTPUT) ) 

   

DATEOUTPUT
2018062028
2018062126
2018062227
2018062325
2018062427
2018062524
2018062629

訊息由此人編輯:Harry Wu

1 Solution

Accepted Solutions
sunny_talwar

May be try with Inter-Record Functions

Sum(OUTPUT)/Above(Sum(OUTPUT)) - 1

View solution in original post

3 Replies
harrywu1
Contributor III
Contributor III
Author

I just found, when a single DATE is selected, the data of the day before the selection can be found and shown.

So, looks like, now the problem lands on how to apply this to multiple DATE's..

sunny_talwar

May be try with Inter-Record Functions

Sum(OUTPUT)/Above(Sum(OUTPUT)) - 1

harrywu1
Contributor III
Contributor III
Author

Thank, Sunny!  It works!

This performs like a data offset, shifting previous or later data to become a new set of data of current day.

Also, the reference Inter-Record Functions you provided gave me a new idea that Qlikview can do for data shift for creating charts.  

Thanks a million!