Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hello people,
I need a DAX command that adds up the individual production times of different production steps for different products and outputs them summarized in a column.
Here in the table I have created a small schematic example.
Thanks a lot for your help!
Product | Protuction time (for this step) [h] | Total production time |
1 | 3 | 10 |
1 | 5 | 10 |
1 | 2 | 10 |
2 | 4 | 8 |
2 | 4 | 8 |
3 | 3 | 9 |
3 | 6 | 9 |
Greetings Lukas
Solved! Go to Solution.
https://www.dropbox.com/s/voqap7cojyjpp7h/keluv4.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Now I have tried to calculate the individual production steps more precisely. Can I add another filter condition to the filter function to get the calculation as shown in the table?
If tryed it with:
Thanks for the help so far!
Product | Production Step | Protuction time | Total production time of M2 |
1 | M1 | 3 | 3 |
1 | M1 | 4 | 3 |
1 | M2 | 2 | 3 |
1 | M2 | 1 | 3 |
2 | M1 | 3 | 4 |
2 | M1 | 3 | 4 |
2 | M2 | 2 | 4 |
2 | M2 | 2 | 4 |
3 | M1 | 5 | 5 |
3 | M1 | 2 | 5 |
3 | M2 | 4 | 5 |
3 | M2 | 1 | 5 |
https://www.dropbox.com/s/voqap7cojyjpp7h/keluv4.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
new table =
SUMMARIZECOLUMNS (
Data[Product],
"@total production time", SUM ( Data[Protuction time (for this step) [h]]] )
)
https://www.dropbox.com/s/voqap7cojyjpp7h/keluv4.pbix?dl=0
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
25 | |
20 | |
20 | |
14 | |
13 |
User | Count |
---|---|
43 | |
37 | |
25 | |
24 | |
22 |