Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |