Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello everyone,
I have problem with calculating the sum of all the mistakes group by order numbers based on every user. I have the following table:
User ID | Mistakes | Order nr | Boxes | Date |
123 | 4 | 555 | 1 | 26.07.2023 |
123 | 4 | 555 | 4 | 26.07.2023 |
234 | 5 | 657 | 3 | 25.07.2023 |
I would like to get the following table
Date | User ID | Mistakes |
26.07.2023 | 123 | 4 |
25.07.2023 | 234 | 5 |
I have tried with the following formula but every time I get the values summed by order number.
Mistakes count =
CALCULATE(
SUM('Scanned items'[Mistakes]),
ALLEXCEPT('Scanned items', 'Scanned items'[Order nr]),
CROSSJOIN('All users', 'Scanned items')
)
I am cross joining the tables because in the tables All users I have the names of the users in the system.
Thank you in advance for your help.
Kind regards,
Stefani
Solved! Go to Solution.
Hi @stefani_vileva ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a table.
New table =
SUMMARIZE(
'Scanned items',
'Scanned items'[Date],
'Scanned items'[User ID],
'Scanned items'[Mistakes]
)
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @stefani_vileva ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a table.
New table =
SUMMARIZE(
'Scanned items',
'Scanned items'[Date],
'Scanned items'[User ID],
'Scanned items'[Mistakes]
)
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Anonymous ,
Thank you for your help. I solved the problem using a similar approach by grouping them in the power query, but in the end we have the same result.
Thanks a lot.
Kind regards,
Stefani