Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a small data set, with a few values. I've simplified this as shown below:
|
My dataset as calulated averages already. For player 5, we can see the first date (1/9/2022), we have 80% and 100%. If I put these in a visual and get the average, I get 90%. However, the calculation is (attempts-errors)/attempts. If I calculate this from the raw columns, I'd get 92% because the 100% value is weighted with 8 attempts to the 5 for the single error.
I have been trying various SUMX () and AverageX() combinations, but I don't quite understand how I can get a measure or column that would give me
Solved! Go to Solution.
Hi, @ssc
You can try the following methods.
Measure =
VAR _table =
SUMMARIZE ('Table','Table'[Date],'Table'[Player],
"DIVIDE",
DIVIDE ( SUM ( 'Table'[Attempts] ) - SUM ( 'Table'[Errors] ), SUM ( 'Table'[Attempts] ) ) )
RETURN
SUMX ( _table, [DIVIDE] )
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @ssc
You can try the following methods.
Measure =
VAR _table =
SUMMARIZE ('Table','Table'[Date],'Table'[Player],
"DIVIDE",
DIVIDE ( SUM ( 'Table'[Attempts] ) - SUM ( 'Table'[Errors] ), SUM ( 'Table'[Attempts] ) ) )
RETURN
SUMX ( _table, [DIVIDE] )
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That does appear to work. I'll test on a larger data set and repost, but can you explain how this works? I'm a little unsure of what is happening.
Lost part of my post. I am looking to understand how I can get a weighted average by date of 92% instead of 90% for a player.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |