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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Petr_Durana
Frequent Visitor

Percentile over average value

I have table PLAYERS and in it columns YEAR, LEAGUE, PLAYER and %3P.
I have slickry over YEAR and LEAGUE columns.
I have a visual type table in which the PLAYER and %3P columns are the average values for the respective player from the %3P column.
The players displayed are based on those two slickers.
I need to add a %3P_PERCENTIL column to show the percentile of the %3P AVERAGE, i.e. the percentage of players who have a %3P average less than that player.
I can address the percentile of the %3P values, but not their averages.

6 REPLIES 6
Petr_Durana
Frequent Visitor

Neither solution leads successfully to the goal, but the paper can be concluded.

Petr_Durana
Frequent Visitor

Formula:
%3P Average = AVERAGE(PLAYERS[%3P])
reports an error:
"The %3P column in the PLAYERS table cannot be found or is probably not used in this expression."
The %3P column is a measure:
%3P = DIVIDE(SUM('PLAYERS'[3PM]), SUM('PLAYERS'[3PA]))
How to solve this?
Thank you

Hi @Petr_Durana , Hello @bhanu_gautam ,

 

Thank you for your prompt reply!

 

Based on your description, you want to create a new measure based on another measure value.

 

 

Measure1: %3P = DIVIDE(SUM('PLAYERS'[3PM]), SUM('PLAYERS'[3PA]))

Measure2: %3P Average = AVERAGE(PLAYERS[%3P])

 

 

Please use the AverageX instead of average function as shown below to have a test:

 

 

%3PAverage = AVERAGEX(VALUES(PLAYER),PLAYER[%3P])

 

 

Remember to format it as Percentage as shown below:

 

vyajiewanmsft_0-1719560151937.png


I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

 

Best regards,

 

Joyce

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Chyba "The PERCENTILE.INC function accepts only a reference to a column as argument number 1."

Hi @Petr_Durana ,

 

As far as I know, the Percentile.INC function doesn't directly support measure because measure is not a static column.

 

As a workaround, consider using calculated columns instead of measures under the Percentile.inc function.

 

Best regards,

Joyce

bhanu_gautam
Super User
Super User

 , Create a measure  

 

  1. Create a measure that calculates the %3P average for each player in the PLAYERS table:
    %3P Average = AVERAGE(PLAYERS[%3P])

    1. Create another measure that calculates the %3P percentile based on the %3P average: %3P Percentile =
      VAR PlayerAverage = [3P Average]
      RETURN
      PERCENTILE.INC(
      CALCULATETABLE(
      VALUES(PLAYERS[PLAYER]),
      ALLSELECTED(PLAYERS),
      PLAYERS[%3P Average] < PlayerAverage
      ),
      PlayerAverage
      )



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!





Helpful resources

Announcements
Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors