Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show/Omit values in the Dimension based on other values in the same Dimension

IDTeamReviewedNameReviewYearReviewFlag
1002Team ATeam A20161
1035Team AEmployee A120151
1005Team BTeam B20151
1563Team CEmployee C620141
1058Team DTeam D20161
1123Team EEmployee E520151
1568Team FTeam F20141
1025Team FEmployee F220161

This is a table I created in QlikSense from simply filter out, from the source table, all ID that hasn't been reviewed.

Background:

1) All Team and Employee have their own unique ID. I also use ID as the dimension.

2) ReviewedName includes either the Team or Employee who were reviewed

3) Employee A# is part of Team A, Employee B# is part of Team B, etc. as shown by the Team column

4) ReviewedFlag = 1 means Team/Employee were reviewed, 0 means not yet. I use this as a filter within the ID column, ie. Dimension formula is: if(ReviewedFlag = '1', ID, null())

5) The rest of the column are just fields

Goal:

I want to further reduce the table by the following rule: If both the Team and any Employee in that team were reviewed previously, only show the one with the most recent ReviewYear. In other words, I want the table to look like this, with the row in red row deleted. It also means, there will be no duplicate of values in the Team Column.

IDTeamReviewedNameReviewYearReviewFlag
1002Team ATeam A20161
1035Team AEmployee A120151
1005Team BTeam B20151
1563Team CEmployee C620141
1058Team DTeam D20161
1123Team EEmployee E520151
1568Team FTeam F20141
1025Team FEmployee F220161

Is there a way to do this? Thank you so much for your help. Please let me know if you have any question.

0 Replies