Forum Discussion

basirve's avatar
basirve
Icon for Helper III rankHelper III
5 years ago

How to Calculate Average for Rank.

Dear Experts,

I have claculated rank for score based on Job Desc, But i would like to create a measure to get average on top of rank based on Job Des.?

 

I/p

 

O/P:  Average of Rank by Job Description 

 

O/p

 

 

 

Please suggest me the solution for this.

 

Thanks & Regards,

Venkat

7 Replies

  • basirve 

     

    If you group by a field, the entries in the field should be correct, meaning that the same ideas should bear the same names. In the example above, you've got a mixture of different job descriptions which I understand mean the same thing, so slicing will not work correctly. Fix your data first. Make it uniform the way it should be.

    • basirve's avatar
      basirve
      Icon for Helper III rankHelper III

      Dear Almighty,

       

      I Have updated the sample data here.

       

      Thanks & Regards,

      Venkat

  • richbenmintz's avatar
    richbenmintz
    Icon for Resident Rockstar rankResident Rockstar

    Hi basirve ,

     

    I am sure this is to simple, but could you not just use the average function.

    avg rank = average(table[rank])

     Are you able to provide a sample pbix file?

     

    Thanks,

  • Hi,

    Is the Rank a measure or a calculated column formula?  Share the link from where i can download your PBI file.

  • Hi,

    If Rank is already a column in your dataset, then create a simple table visual and drag Job Description and Manager there.  Write this measure

    Average rank = average(Data[Rank])

    Hope this helps.

  • Dear Mathur,

     

    We have created a mesaure to calculate for rank.

     

    Regards,

    Venkat.