Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi I have a measure that calculates TotalProducts and I would like to now calculate Average([TotalProducts]) based on Region column. Can someone please help on how to get this. Please see below measure calculation
Solved! Go to Solution.
Hi @Anonymous,
OK, please try this.
Measure = SUMX(ALLSELECTED(Table1),[RegionCount])/[RegionCount]
If you still need help, please share more data sample which could reproduce your scenario and share the formula which is related so that we could help further on it.
Best Regards,
Cherry
Hi,
Try this measure
=AVERAGEX(VALUES(Product[Region]),[TotalProducts])
Hi @Anonymous,
For your requirement, you could try the quick measure in Power BI firstly.
If you still need help, please share some data sample and your desired output so that we could help further on it.
Best Regards,
Cherry
Hi Thanks for your reply. I have tried Averagex and Quick Measure already. What I need is as below
| Contact_address1_city | RegionCount | Average | Calc |
| NULL | 5535 | 2.312195 | =12798/5535 |
| London | 1252 | 10.22204 | =12798/1252 |
| HIGH WYCOMBE | 554 | 23.10108 | =12798/554 |
| GLASGOW | 619 | 20.67528 | |
| NOTTINGHAM | 611 | 20.94599 | |
| Bristol | 528 | 24.23864 | |
| BIRMINGHAM | 515 | 24.85049 | |
| KING | 249 | 51.39759 | |
| sunderland | 460 | 27.82174 | |
| NEWCASTLE UPON TYNE | 457 | 28.00438 | |
| LEEDS | 437 | 29.28604 | |
| WREXHAM | 430 | 29.76279 | |
| SHEFFIELD | 393 | 32.56489 | |
| LIVERPOOL | 390 | 32.81538 | |
| Manchester | 368 | 34.77717 | |
| TotalProducts | 12798 |
Hi @Anonymous,
What about this measure?
Measure =
CALCULATE ( SUM ( Table1[RegionCount] ), ALLSELECTED ( Table1 ) )
/ CALCULATE ( SUM ( Table1[RegionCount] ) )
Best Regards,
Cherry
Hi @Anonymous,
OK, please try this.
Measure = SUMX(ALLSELECTED(Table1),[RegionCount])/[RegionCount]
If you still need help, please share more data sample which could reproduce your scenario and share the formula which is related so that we could help further on it.
Best Regards,
Cherry
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 21 | |
| 20 | |
| 13 |
| User | Count |
|---|---|
| 59 | |
| 53 | |
| 41 | |
| 31 | |
| 26 |