Forum Discussion
Syndicate_Admin
Administrator
2 years agoDAX Consultation
Hello People, I hope it is going well. I'm testing some functions for a personal project and I'm having problems with a logic. I have a Sales table that contains employee code, date, values, and...
Syndicate_Admin
Administrator
2 years agoHola @Syndicate_Admin
Here is the link to the excel mockup: https://www.transfernow.net/dl/20240802i4CwOQFc
The idea would be to have a table of employees with sales for the period, something like this, in this case as it has a duration of 11 it would be an avg of 4-6 (as a duration greater than 6 then that period divided 3, the same with the period 7-9 and in the period 10-12 there add the values but dividing by 2 since it does not have 12 duration.
| Number | Employee Code | Start Date | Duration | 0-3 months | 4-6 months | 7-9 months | 10-12 months |
| Juan Antonio Andujar | 1 | 20/06/2023 | 11 | 0 | 15812,5 | 7000 | 5625 |
Any other questions you can ask me. I hope you understand.
Thank you very much in advance!
Syndicate_Admin
Administrator
2 years agoHello @Syndicate_Admin , any luck with this query? Thank you!!