Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

RANK BY FIGURES AND GROUPS

   

 

Hello ,
I have different lot no column on that I want to grouping and based on tender rate decending order ranking .

If you can see in table blue color same tender rate have same rank  (18).

If  we cahnge lot no then rank should be dynamicaly change according to tender rate.

thanks in advance

reg ,
Pooja

  • hi, Anonymous

    You could use RANKX Function to create a column by this formula as below:

     

    Rank = RANKX(FILTER('Table','Table'[Lot No]=EARLIER('Table'[Lot No])),'Table'[Tender Rate],,DESC,Dense)

     

     

    Note:

    Skip The next rank value, after a tie, is the rank value of the tie plus the count of tied values. For example if five (5) values are tied with a rank of 11 then the next value will receive a rank of 16 (11 + 5).

    This is the default value when ties parameter is omitted.
    Dense The next rank value, after a tie, is the next rank value. For example if five (5) values are tied with a rank of 11 then the next value will receive a rank of 12.

     

    Result:

    Best Regards,

    Lin

     

     

     

     

     

10 Replies

  • v-lili6-msft's avatar
    v-lili6-msft
    Icon for Community Support rankCommunity Support

    hi, Anonymous

    You could use RANKX Function to create a column by this formula as below:

     

    Rank = RANKX(FILTER('Table','Table'[Lot No]=EARLIER('Table'[Lot No])),'Table'[Tender Rate],,DESC,Dense)

     

     

    Note:

    Skip The next rank value, after a tie, is the rank value of the tie plus the count of tied values. For example if five (5) values are tied with a rank of 11 then the next value will receive a rank of 16 (11 + 5).

    This is the default value when ties parameter is omitted.
    Dense The next rank value, after a tie, is the next rank value. For example if five (5) values are tied with a rank of 11 then the next value will receive a rank of 12.

     

    Result:

    Best Regards,

    Lin

     

     

     

     

     

      • Anonymous's avatar
        Anonymous
        Not applicable

        hi Anonymous 

         

        i am trying to find rank, by using RankX function in powerbi

        but it's not working can please see it once

         

        Thanks and Regards.

        Bobbala Naveen venkates

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello ,

    Is it possible in power bi.???


    Please reply fast if you know 

    Reg ,
    Pooja 

    • v-lili6-msft's avatar
      v-lili6-msft
      Icon for Community Support rankCommunity Support

      hi, Anonymous

      Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

       

      Best Regards,

      Lin