Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone. I am trying to calculate monthly AVG workime of my people in salesforce. I have got information about every visit they did and its duration. People in salesforce do about 10-12 visits per day. To calculate daily work time I used formula below
Daily Worktime = MIN(Visits[Visist Start Time])-MAX(Visits[Visit End Time])
but it only works when I create a table chart when I add Visit date and later when I want to aggregate it to monthly worktime it doesn't count properly.
Manager1 | Manager2 | Sales Representant | ClientID | Visist Start date | Visist Start time | Visist End date | Visist End time | Visit Duration |
Adam | Jan | Marcin | 1456 | 15-06-2019 | 08:45 | 15-06-2019 | 09:30 | 00:45 |
Adam | Jan | Marcin | 1456 | 17-06-2019 | 09:35 | 17-06-2019 | 09:50 | 00:15 |
Hi @Anonymous ,
Do you consider the difference between Visit End Time and Visit Start Time? Like the sample data, do you want 65min or 60min between them?
I calculated AVG without considering the difference.
Measure = DIVIDE(DATEDIFF(MIN('Table'[Visist Start time]),MAX('Table'[Visist End time]),MINUTE),30)
Is this what you want? If not, can you please post the dummy file or the expected output?
Best Regards,
Xue
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @v-xuding-msft ,
thank you for responding. I consider visit duration for other measures like sum of time spent in shops but to count MONTHLY worktime I do not use it.
I tried to use your formula and results it gives doesn't answer my question. I need to count averegea monthly time per person. Results of your formula is below. What does this measure shows?
I am wondering if information about every visit it enought to count MONTHLY worktime per VisitUserName?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |