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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 20 | |
| 17 | |
| 12 |