Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have been tryng to create a measure that calculates the average of the 'best' 40 results from site A by period. Lower scores are better and zero represents no score and needs to be ignored. Sample data below. There are hundreds of scores per period at site A. Can anyone help? Please 🙂
| Site | Period | Score |
| A | 100 | 1.7 |
| A | 100 | 1.65 |
| A | 100 | 1.55 |
| A | 100 | 1.6 |
| B | 100 | 0 |
| A | 100 | 1.59 |
| A | 101 | 1.45 |
| A | 101 | 1.55 |
| A | 101 | 1.75 |
| A | 101 | 1.55 |
| A | 101 | 1.9 |
| B | 101 | 0 |
| B | 101 | 1.75 |
Solved! Go to Solution.
Hey Jimmy17.
You could first create a calculated column which counts the values which are lower than the value in the current row.
Something like this should work:
Hey Jimmy17.
You could first create a calculated column which counts the values which are lower than the value in the current row.
Something like this should work:
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 17 | |
| 16 | |
| 12 | |
| 8 | |
| 5 |