This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello,
I am fairly new using Power BI and am not able to get a chart representing the data I want.
So, I have different type of orders (online, in-store, etc) and each order has an order number. Each order number is associated with tasks. For example, an online order has 5 tasks (5 lines of data) such as (2h packing - 1h mailing - etc.) All my orders also have an order date.
I am trying to use the line chart to represent the average work time (tasks time) per order type, per year. For example, the average time required for online orders vs for in-store orders, and see the progression each year.
I put the following data in the following box;
X ; Year
Y ; Time of tasks
Legend ; Order type
My problem is, if I select (Average) ''Time of tasks'' it is giving me the average of all lines together (which is low, as all tasks take between 1-3h). I want the average per order number and order type; I want Power BI to give me the average time it takes for each order (not for each task seperately) which should be between 8-10h per order.
Not sure if I am being clear... thanks so much for anyone that will take the time to read and help!
@noemietl , I think is is case avg of sum
Try like
Sumx(Values(Table[Task]), calculate(Sum(Table[Time Value])) )
Avg of Sum : https://youtu.be/cN8AO3_vmlY?t=22980
Hello,
thank you for your reply. It does not seem to be working.
Here is my formula
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
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 |
|---|---|
| 25 | |
| 23 | |
| 19 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 24 | |
| 20 | |
| 20 | |
| 19 | |
| 19 |