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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

Anonymous
Not applicable

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."

Anonymous
Not applicable

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!




LinkedIn






Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.