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 nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello,
I am trying (and failing) to work out the average execution time of a report. I have a fact table called ReportExecution in the following (simplified) format:
Date ReportName UserName ReportCount AvgerageTime
20/12/17 StockReport Joe Lewis 6 31
21/12/17 StockReport Joe Lewis 5 36
21/12/17 StockReport Asim Shah 8 49
22/12/17 StockReport Asim Shah 2 50
The table has one row for every user / day / report, ReportCount is the total times a user has run the report for that day.
I need to get the actual average and not just an average of an average.
If I was doing this in excel I would do something like...
1. Get total time for each row by multiplying average time by report count
2. Get the total time for the set by summing the row totals
3. Get the total report count by summing the report count for each row
4. Divide the total time by the total report count
Any help would be appreciated.
Solved! Go to Solution.
So, maybe create a new column in your fact table:
TotalTime = [ReportCount] * [AverageTime]
Then create a measure like:
MyAverage = DIVIDE(SUM([TotalTime]),SUM([ReportCount]))
So, maybe create a new column in your fact table:
TotalTime = [ReportCount] * [AverageTime]
Then create a measure like:
MyAverage = DIVIDE(SUM([TotalTime]),SUM([ReportCount]))
Excellent, thank you.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 20 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 35 | |
| 28 | |
| 21 | |
| 19 | |
| 17 |