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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dates, set analysis?

I would like to sum the amount of customers like on the picture added but for example if the date is 2009-03-09 the the customers that have been visiting between 2009-03-08 19:00 and 2009-03-09 19:00 are summarized. Can I achieve it with set-analysis?

//Liivi

6 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

As far as I know, you can't... If my understanding is correct, the Set Analysis expression is being evaluated "outside" of the context of the current cell in your chart, therefore we can't use the current dimension value (e.g. Date) in the set analysis expression.

I'd be very happy to see a solution to this problem, because problems of this kind have been bugging me for a while...

As far as I understand your problem, you can either use an IF statement (which is slow, if you have a lot of data), or solve this problem back in the script and associate the relevant timestamps with the desired Dates.

cheers,

Ask me about Qlik Sense Expert Class!
Not applicable
Author

I agree with Oleg that you would need to do it in the script. Come up with a routine that will group those time periods into the appropriate groupings/buckets. Probably can use intervalmatch.

Could you provide us with some sample data to test it out?

Not applicable
Author

Here I made an qv-application. It looks a bit strange so I even add the excel sheet with information.

Not applicable
Author

And excelsheet

Not applicable
Author

Anyone?

Not applicable
Author

Regarding Oleg post, I agree, but i thought that Version 9 of qlikview was allowing set analysis outside of the context ?

So maybe (maybe !) you should have a look at set analysis in ver 9. but i didn't see it yet.

Regards,

Sébastien