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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.