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.
Hi everyone
I'm looking for a formula to calculate the sum of max values and then average it by the number of distinct values in the job number column
eg: I have a table with job numbers and lead times. I need a formula to calculate (5+10+15)/3 = 10
job number | lead time |
x | 5 |
x | 5 |
x | 5 |
y | 10 |
y | 10 |
z | 15 |
Solved! Go to Solution.
Hi, @Anonymous ;
You also could create measure as follows:
Measure = AVERAGEX(SUMMARIZE('Table',[job number],[lead time]),[lead time])
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous ;
You also could create measure as follows:
Measure = AVERAGEX(SUMMARIZE('Table',[job number],[lead time]),[lead time])
The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Try measure like
AverageX(values(Table[Job Number]), calculate(Max(Table[Lead Time])) )
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 |
---|---|
114 | |
105 | |
79 | |
68 | |
63 |
User | Count |
---|---|
148 | |
107 | |
106 | |
82 | |
70 |