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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
vkal12
Creator
Creator

Group dates in future, backlog and today

Hello Community, 

I am pretty new to Qlik Sense and I have the following challenge: 

I would like to group a date field in the groups future, past and today based on the dates. This means, that every date that is smaller than today belongs to the past, today is today and the future is every date that is greater than today. 

Based on those groups I would like to calculate multiple KPI. Can anyone help me on how to group those dates? Everything that I tried out does not seem to work properly.

Thank you very much!

 

Labels (5)
1 Reply
marcus_sommer

You may use something like this within the script:

pick(match(sign(Date - today()), -1, 0, 1), 'past', 'today', 'future') as DateGroup 

and then you could filter on this field or using it as dimension within a chart.

- Marcus