Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis on Timeseries Dimension

Hi there,

I want to create a line chart which shows 2 indices over time. The hard bit is that when i select a certain time period I want the chart only to show the change in that period. This would be calculated by taking the value - the value at the start of the period selected. I think this has to be done using set analysis and I have tried the following formula:

sum(Value) - sum({$<Date={'$vMinDate'}>} Value)

Where vMinDate is

=date(min(Date), 'DD MMM YYYY')

I have attached an example. My formula doesn't work.

Thanks

Max

1 Solution

Accepted Solutions
sunny_talwar

My bad, what about this?

Sum(Value) - Sum(TOTAL <Book> {$<Date={"$(=vMinDate)"}>} Value)


Capture.PNG

View solution in original post

5 Replies
sunny_talwar

Not sure what you want, but may be this?

sum(Value) - sum(TOTAL {$<Date={"$(=vMinDate)"}>} Value)


Capture.PNG

Not applicable
Author

Hi Sunny T, thanks for the reply.

The idea is that for any time period selection both lines on the chart start from 0 and show the change just during the period selected. So that formula will not work unfortunately.

Thanks

sunny_talwar

My bad, what about this?

Sum(Value) - Sum(TOTAL <Book> {$<Date={"$(=vMinDate)"}>} Value)


Capture.PNG

Not applicable
Author

That works perfect thanks for that. So the reason my previous formula didn't work is because I needed to total it by my second dimension?

sunny_talwar

I am not 100% sure if this is doing what you really intend to do. Currently, each data point is subtracted by the value on the selected date. If this is not what you want, please elaborate