Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Would it be possible to create a caluclated column that could find the average of each salesmans sales so that looks a little like this example?
| Day | Salesman | Sales | Average |
| Monday | John | 200 | 277.5 |
| Monday | Steve | 350 | 625 |
| Monday | Billy | 100 | 170 |
| Tuesday | John | 355 | 277.5 |
| Tuesday | Steve | 900 | 625 |
| Tuesday | Billy | 240 | 170 |
I know I could format the a total to show the average in a visual and I have a measure that does the same thing, but I was wondering if I could do this in a calulated column?
Solved! Go to Solution.
Please try this column expression. Replace T1 with your actual table name.
AvgSales =
CALCULATE (
AVERAGE ( T1[Sales] ),
ALLEXCEPT ( T1, T1[Salesman] ),
T1[Sales] > 0
)Pat
Please try this column expression. Replace T1 with your actual table name.
AvgSales =
CALCULATE (
AVERAGE ( T1[Sales] ),
ALLEXCEPT ( T1, T1[Salesman] ),
T1[Sales] > 0
)Pat
Outstanding, that's cracked it! You two have been brilliant help!
Try this
Avg = CALCULATE(AVERAGEX('DataTable','DataTable'[Sales]), FILTER('DataTable', 'DataTable'[Salesman] = EARLIER('DataTable'[Salesman])))
Regards
Phil
Proud to be a Super User!
Oh that is fantastic! Would you know how I could exclude any values that were 0 and / or blanks?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.