Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator II
Creator II

top 10 and bottom 10

Hi Community,

using straight table I have set Top 10 records in Dimension limits - working fine for top 10 but bottom 10 not working.

is there any issue - I have to show negative values in bottom 10 ?? below is my expression.

NUM(AVG(AGGR((AVG({<GENDER={'M'}>}SALARY)-AVG({<GENDER={'F'}>}SALARY))
/
AVG({<GENDER={'M'}>}SALARY), CO, TITLE, CODE)),'##.#%')

Please find the attachment.

Thanks in Advance!!...

 

Labels (1)
1 Solution

Accepted Solutions
paulwalker
Creator II
Creator II
Author

It won't work, value shouldn't be change.

I have managed with below calculation..

 

IF(RANK(-NUM(AVG(AGGR((AVG({<GENDER={'M'}>}SALARY)-AVG({<GENDER={'F'}>}SALARY))
/
AVG({<GENDER={'M'}>}SALARY), CO, TITLE, CODE)),'##.#%')<=10,

NUM(AVG(AGGR((AVG({<GENDER={'M'}>}SALARY)-AVG({<GENDER={'F'}>}SALARY))
/
AVG({<GENDER={'M'}>}SALARY), CO, TITLE, CODE)),'##.#%'))

 

-Thanks

View solution in original post

2 Replies
Chanty4u
MVP
MVP

can you try this

NUM(AVG(AGGR((AVG({<GENDER={'M'}>}SALARY)-AVG({<GENDER={'F'}>}SALARY))
/
fabs(AVG({<GENDER={'M'}>}SALARY)), CO, TITLE, CODE)),'##.#%')

or

NUM(AVG(fabs(AGGR((AVG({<GENDER={'M'}>}SALARY))-AVG({<GENDER={'F'}>}SALARY))
/
AVG({<GENDER={'M'}>}SALARY), CO, TITLE, CODE)),'##.#%')

paulwalker
Creator II
Creator II
Author

It won't work, value shouldn't be change.

I have managed with below calculation..

 

IF(RANK(-NUM(AVG(AGGR((AVG({<GENDER={'M'}>}SALARY)-AVG({<GENDER={'F'}>}SALARY))
/
AVG({<GENDER={'M'}>}SALARY), CO, TITLE, CODE)),'##.#%')<=10,

NUM(AVG(AGGR((AVG({<GENDER={'M'}>}SALARY)-AVG({<GENDER={'F'}>}SALARY))
/
AVG({<GENDER={'M'}>}SALARY), CO, TITLE, CODE)),'##.#%'))

 

-Thanks