Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Second max value in title

Hi,

I want to shwo the second max value in the title.

To get the dimension, i've :

=Only(if(aggr(

     Rank(Count(if ( $(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE ,Revenu_T1) )

       /

   Count(Total if ( $(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE ,Revenu_T1) )

        ,Revenu_T1

        ),Revenu_T1)

               =2,Revenu_T1))

that's fine, but i also want the value ...

I tried many things but without success ...

like

pick(2,

Rank( (Count(if ( $(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE ,Revenu_T1) )

       /

   Count(Total if ( $(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE ,Revenu_T1) ))      

        ,Revenu_T1 )  )

thanks for your help.

1 Solution

Accepted Solutions
sunny_talwar

How about this

=Max(Aggr(

Count(If($(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE, Revenu_T1))/

Count(TOTAL If($(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE, Revenu_T1))

, Revenu_T1), 2)

View solution in original post

6 Replies
olivierrobin
Specialist III
Specialist III

hello

tou could try to use

FirstSortedValue()

FirstSortedValue ([ distinct ] value, sort-weight [, rank ])

and specifying rank as 2

sunny_talwar

How about this

=Max(Aggr(

Count(If($(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE, Revenu_T1))/

Count(TOTAL If($(vAnnee) = ANNEE_FH and $(vTypeAnnee) = TYPE_ANNEE, Revenu_T1))

, Revenu_T1), 2)

sagar_puri
Partner - Contributor III
Partner - Contributor III

Hi,

Try max(filedname,2)

hope this helps

Anonymous
Not applicable
Author

Thanks Sunny, that's right !!!!

Anonymous
Not applicable
Author

i tried it but unsuccessfully

bc-thebruuu
Creator
Creator

Can you provide sample data or sample application to work on?