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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
robin_heijt
Creator
Creator

Create custom filter

Hi,

I am facing the following issue.

I have assigned all people in my files who have a "Movement Type" to a cycle that corresponds to the month of July as a start till June in the next year.

People without a movement do not have a cycle.

Load *,

YearName("Effective Date", 0, 7) as "Cycle"

;

As Is example:

IDStatusNameEffective DateMovement TypeCycle
1002ActiveJohn20/02/2017Promotion2016-2017
1002ActiveJohn20/05/2018Promotion2017-2018
2054ActivePatrick---
5432ActiveLena20/04/2018Promotion2017-2018
5432ActiveLena20/09/2018Promotion2018-2019
3245WithdrawnJohnny20/03/2017Termination2016-2017

What I need now is the following when filtered for cycle 2018-2019:

IDStatusNameEffective DateMovement TypeCycle
1002ActiveJohn--2018-2019
2054ActivePatrick--2018-2019
5432ActiveLena20/09/2018Promotion2018-2019

Because John has an active status, he is still part of the cycle 2018-2019, however in this cycle he does not have a movement type.

So when I filter for cycle '2018-2019' I would like him to show up like in the 2nd table.

Does anyone have an idea on how to do this?

Cheers

0 Replies