Filter out rows with max values in certain column

I'm feeling a bit stupid now as I should be able to figure this out on my own.

I've got a table that goes something like this:

UserExerciseDateScoreLevel 1Level 2Level 3
User XExercise 1Date 136591%81%73%
User XExercise 2Date 218090%78%69%
User XExercise 1Date 338095%84%76%
User XExercise 2Date 4200100%87%77%
User XExercise 3Date 415033%30%27%
User XExercise 1Date 535088%78%70%

Where Level 1, 2 and 3 indicates your progress towards that level for each exercise (each exercise has unique goal levels defined)

I want to create a slice where I list all the unique rows based on exercises for a user where level 2 is at it's maximum. Which for User X should result in the following:

UserExerciseDateScoreLevel 1Level 2Level 3
User XExercise 2Date 218090%78%69%
User XExercise 2Date 4200100%87%77%
User XExercise 3Date 415033%30%27%

Thankful for any hints and help!

Solved Solved
0 5 463
1 ACCEPTED SOLUTION

Ok, you do not even need a slice you can do this with a table view and aggregation as shown below.

gregdiana1_0-1667580362419.png

This will yield

gregdiana1_1-1667580387126.png

And then you can click on anyone and drill down.

If you have more than one user then simply group as follows

gregdiana1_2-1667581156433.png

 

Which yields

gregdiana1_3-1667581186858.png

and then drilling down on X gives

gregdiana1_4-1667581218504.png

 

This no-code should do unless you want to develop a custom T/F select statement for any slice.which is possible and easily done.

 

Cheers

 

Greg Diana

Here is the table I used

IDUserExerciseDateScoreLevel 1Level 2Level 3
1.00User XExercise 1Date 1365.0091%81%73%
2.00User XExercise 2Date 2180.0090%78%69%
3.00User XExercise 1Date 3380.0095%84%76%
4.00User XExercise 2Date 4200.00100%87%77%
5.00User XExercise 3Date 415033%30%27%
6.00User XExercise 1Date 535088%78%70%
7.00User YExercise 1Date 1365.0091%83%73%
8.00User YExercise 2Date 2180.0090%76%69%
9.00User YExercise 1Date 3380.0095%80%76%
10.00User YExercise 2Date 4200.00100%85%77%
11.00User YExercise 3Date 415033%55%27%
12.00User YExercise 1Date 535088%75%70%

 

View solution in original post

5 REPLIES 5

Is your resultant table correct?  you are showing Exercise 2 twice.  If it is correct, please explain why Exercise 2 should be shown twice

Typo ๐Ÿ™‚

I think the first row is incorrect and should read

 

UserExerciseDateScoreLevel 1Level 2Level 3
User XExercise 1Date 338095%84%76%
User XExercise 2Date 4200100%87%77%
User XExercise 3Date 415033%30%27%

Ok, you do not even need a slice you can do this with a table view and aggregation as shown below.

gregdiana1_0-1667580362419.png

This will yield

gregdiana1_1-1667580387126.png

And then you can click on anyone and drill down.

If you have more than one user then simply group as follows

gregdiana1_2-1667581156433.png

 

Which yields

gregdiana1_3-1667581186858.png

and then drilling down on X gives

gregdiana1_4-1667581218504.png

 

This no-code should do unless you want to develop a custom T/F select statement for any slice.which is possible and easily done.

 

Cheers

 

Greg Diana

Here is the table I used

IDUserExerciseDateScoreLevel 1Level 2Level 3
1.00User XExercise 1Date 1365.0091%81%73%
2.00User XExercise 2Date 2180.0090%78%69%
3.00User XExercise 1Date 3380.0095%84%76%
4.00User XExercise 2Date 4200.00100%87%77%
5.00User XExercise 3Date 415033%30%27%
6.00User XExercise 1Date 535088%78%70%
7.00User YExercise 1Date 1365.0091%83%73%
8.00User YExercise 2Date 2180.0090%76%69%
9.00User YExercise 1Date 3380.0095%80%76%
10.00User YExercise 2Date 4200.00100%85%77%
11.00User YExercise 3Date 415033%55%27%
12.00User YExercise 1Date 535088%75%70%

 

Thanks!!!

Top Labels in this Space