Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
i need a masteradvice... i have a raw data of sales in which i have duplication of Sales promoters and dates.
Interaction IdSP UserNameInteraction Date
3345278 | RCEM07SP010 | 2020-01-01 |
3345412 | RCEM07SP010 | 2020-01-01 |
3345631 | RCEM07SP010 | 2020-01-01 |
3345772 | RCEM07SP010 | 2020-01-01 |
3345994 | RCEM07SP010 | 2020-01-01 |
3346145 | RCEM07SP010 | 2020-01-01 |
3346343 | RCEM07SP010 | 2020-01-01 |
3346557 | RCEM07SP010 | 2020-01-01 |
3346808 | RCEM07SP010 | 2020-01-01 |
3346993 | RCEM07SP010 | 2020-01-01 |
3347228 | RCEM07SP010 | 2020-01-01 |
3347500 | RCEM07SP010 | 2020-01-01 |
3347778 | RCEM07SP010 | 2020-01-01 |
3347916 | RCEM07SP010 | 2020-01-01 |
3348066 | RCEM07SP010 | 2020-01-01 |
3348186 | RCEM07SP010 | 2020-01-01 |
3348275 | RCEM07SP010 | 2020-01-01 |
3348421 | RCEM07SP010 | 2020-01-01 |
Now here i want to calculate Attendance that for suppose on Jan how many Sales promoters have worked . so i basically i am looking for distinct count of dates & Distinct count of Salespromoters. need to perform a calculation sum of salespromoter days in Jan.
Solved! Go to Solution.
Hi @Anonymous ,
You could refer to my sample for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
So, for the data presented, is the number you are looking for 1 date and 1 promoter? DISCTINTCOUNT will give you the count of the distinct values in a column.
yes i am looking for how many promoters were present on a particular date, or in a month, or qtr
Hi @Anonymous ,
I am not sure what is your detailed requirement, if you want to get count, you could just use distinct count and create a calendar table as slicer. You could refer to my sample for details.
If this is not what you want, please correct me and inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.
Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe Zhi
User | Count |
---|---|
103 | |
88 | |
78 | |
71 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |