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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
sheidari
Frequent Visitor

Averages by Category while ignoring slicer AND Breaking Tiebreakers in Ranking

I've been searching for a solution to two problems for the last 3 days and after testing different solutions, I am back to square one.  Hoping someone can help me solve what seem to be easy fixes...I know how to do this in Tableau but PBI doesn't seem as straightforward.

 

I have sample data in the attached PBI file for a game.  Each player earns points across specific metrics. 

 

https://drive.google.com/file/d/1xsoMvYXD_i5An33OE30B-FlbKhT07nwu/view?usp=sharing 

 

Problem 1:

I want to select a player from the slicer and show that persons actual points relative to the team and league averages.  I think i got the league average working but the team average changes each time that i filter on a player...it seems to only take the average of that player vs their entire team.  The average should exclude players with 0 points.

 

Problem 2:

I want to rank the top 10 players across 4 metrics but sometimes i run into an issue where multiple players are tied...so rather than get a top 10, i get a much higher result.  As a result, the top player points card seems to be taking that top 1 player and multiplying it by the total # of players with 4 points. I want the tiebreaker to be based on alphabetical order of the player name for both the points by player and top player points visuals.  I've tried multiple things using Rankx to no avail so i deleted the metrics to start fresh.  

 

Any help will be greatly appreciated! This is for a client project and i'm at the last mile before delivering but these two issues are a pain in the butt.

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @sheidari ,

#1. You can write a formula with all/allexcept functions to ignore filter integration to keep the specific results. (you can add a filter to that calculation formula to calculate with specific conditions)
Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT 

#2. It sounds like multiple column ranking, you can take a look at ISONORAFFTER function to achieve multiple column ranking:

Sorting by multiple columns 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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