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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Blue246
Frequent Visitor

How can i show average as a percentage of a grouping?

How can i create a measure to show average Plays by Person, Per Day as a percentage (higher or lower) than the average Plays of that person's team? For simplicity i kept the table to one date for this question.

Lets say i have a table:

Player Moves TeamDate
TedLeftRed1/1/2001
TedLeftRed1/1/2001
TedRightRed1/1/2001
BillLeftBlue1/1/2001
BillRightBlue1/1/2001
MarkLeftGreen1/1/2001
LukeRightRed1/1/2001
LukeRightRed1/1/2001

 

I need to calculate each players average moves by day as a percentage compared to the average moves by play players team.

In a Power BI Table it should look something like: This doesnt match the above table it's just for an example.

PlayerAvg Moves Per DayPercentage Vs Team Avg
Ted350%
Bill275%
Mark1-30%
Luke2-45%


Basically a positive % is how much that persons avg is above their specific teams average and vice versa for a negative percentage.

 

Thanks for the help!

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Blue246 So like this? PBIX below sig.

Measure = 
    VAR __Average = AVERAGEX( SUMMARIZE( ALL('Table'), [Player], [Date], "__Moves", COUNTROWS( 'Table' ) ), [__Moves] )
    VAR __Percent = DIVIDE( COUNTROWS('Table') - __Average, __Average )
RETURN
    __Percent


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Blue246 So like this? PBIX below sig.

Measure = 
    VAR __Average = AVERAGEX( SUMMARIZE( ALL('Table'), [Player], [Date], "__Moves", COUNTROWS( 'Table' ) ), [__Moves] )
    VAR __Percent = DIVIDE( COUNTROWS('Table') - __Average, __Average )
RETURN
    __Percent


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.