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

Using Rank and aggr Function

Hi There

I have the following data

PhaseNo, Tackles Missed

1,2

1,1

1,1

2,4

2,1

3,2

4,5

5,1

5,1

6,2

6,2

6,1

I need to rank PhaseNo by sum of Tackles Missed (i.e. I need to know which Phase has the most Tackles Missed by rank)

Thanks

Kevin

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

PhaseNo

Expression

NUM(Rank(TOTAL SUM([Tackles Missed]),4))

or

NUM(Rank(TOTAL COUNT([Tackles Missed]),4))

Whatever is applicable to your application.

View solution in original post

12 Replies
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

PhaseNo

Expression

NUM(Rank(TOTAL SUM([Tackles Missed]),4))

or

NUM(Rank(TOTAL COUNT([Tackles Missed]),4))

Whatever is applicable to your application.

Not applicable
Author

Thank you Manish

Worked perfectly

Is there a way to create the same rank without a dimension (due to the layout of the report)

tamilarasu
Champion
Champion

You can also use,

Aggr(Rank(Sum([Tackles Missed]),4,1),PhaseNo)


or


Num(Aggr(Rank(Sum([Tackles Missed]),4),PhaseNo))

or

Aggr(Rank(Sum([Tackles Missed]),4),PhaseNo)

Sample attached against your data.

MK_QSL
MVP
MVP

How you want the output without dimension? Can you please provide here?

Not applicable
Author

I am looking to find rank the Phases with the most tackles using a text object due to the layout of the report

I can only show 1 Phase at a time. From there I am looking to use rank as a heatmap

tamilarasu
Champion
Champion

Use the below expression in textbox,

=Only({<PhaseNo = {"=Num(Aggr(Rank(Sum([Tackles Missed]),4),PhaseNo))=1"}>}PhaseNo)

Not applicable
Author

It works

Thank you for the help

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer.

If not, please tell us what help you still need with this question.

May you live in interesting times!
Not applicable
Author

Hi Onno

Yes sure... Where do I mark the answer as correct