Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi there
I have just started my Power BI journey. I am trying to calculate the average time a specific maschine needed to complete a specifict task in order to compare it with the planned data.
In the screen shot below you can see my sample data, which includes:
- 5 different Maschine types (A, B C, D an E)
- 3 different Tasks (Nr 1, 2 and 3)
- Time needed for completing the task
Since there are many more maschine types and tasks in my real data set, I am looking for a way to build a table or a matrix, where I do not have to manually write the reffered machine ( = "Maschine A") or task, into the function. Any ideas how to do that?
Thanks in advance!
Solved! Go to Solution.
Hi,
Since measures work using current filter context a basic average measure should do what you want:
Example data:
Dax:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
@JM94 use the following measure
Avg by Maschine and task =
CALCULATE (
AVERAGE ( tbl[Time] ),
ALLEXCEPT ( tbl, tbl[Maschine], tbl[Task Nr.] )
)
Hi,
Since measures work using current filter context a basic average measure should do what you want:
Example data:
Dax:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
10 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |