Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey guys, I have a problem counting the difference of two averages. I keep getting a result of 0 despite filtering the data. I have a table that looks like this:
Player | Score | Player2 | Score2 |
A | 8 | A | 8 |
B | 7 | B | 7 |
C | 6 | C | 6 |
D | 8 | D | 8 |
I simply added two additional columns to use them separately in the slicer, unfortunately it doesn't work 😀
My visualization:
TEAM I and TEAM II are averages of selected players. I would like Team_results to count the difference in averages between teams after selecting players on both sides.
Solved! Go to Solution.
Linking both slicers to the same table won't work, you need to create two new tables for the slicers, like
Team I = DISTINCT('Table'[Player])
Link both Team I and Team II to your existing table and use the player column from the new tables on the slicer.
You can then create measures like
Team I Avg =
CALCULATE ( AVERAGE ( 'Table'[Score] ), REMOVEFILTERS ( 'Team II' ) )
Team II Avg =
CALCULATE ( AVERAGE ( 'Table'[Score] ), REMOVEFILTERS ( 'Team I' ) )
Team results = [Team I Avg] - [Team II Avg]
Thank you very much for your time and help 🙂
Linking both slicers to the same table won't work, you need to create two new tables for the slicers, like
Team I = DISTINCT('Table'[Player])
Link both Team I and Team II to your existing table and use the player column from the new tables on the slicer.
You can then create measures like
Team I Avg =
CALCULATE ( AVERAGE ( 'Table'[Score] ), REMOVEFILTERS ( 'Team II' ) )
Team II Avg =
CALCULATE ( AVERAGE ( 'Table'[Score] ), REMOVEFILTERS ( 'Team I' ) )
Team results = [Team I Avg] - [Team II Avg]
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
19 |