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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I need a measure to calculate the average (distinct count of) tickets per site code as per visual below. I tried averagex, averagea but with incorrect results. Any tips please @tamerj1 ?
Solved! Go to Solution.
Avg tickets =
var summaryTable = ADDCOLUMNS( VALUES( 'Table'[SITE_CODE]), "@val", [Distinct total tickets])
return AVERAGEX( summaryTable, [@val])
Avg tickets =
var summaryTable = ADDCOLUMNS( VALUES( 'Table'[SITE_CODE]), "@val", [Distinct total tickets])
return AVERAGEX( summaryTable, [@val])
@johnt75 thank you for the prompt response, results look much better. Appreciate your help.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 18 | |
| 11 | |
| 10 |