cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Hamza-ali Frequent Visitor
Frequent Visitor

Calculation of Attendance through Sales data

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

3345278RCEM07SP0102020-01-01
3345412RCEM07SP0102020-01-01
3345631RCEM07SP0102020-01-01
3345772RCEM07SP0102020-01-01
3345994RCEM07SP0102020-01-01
3346145RCEM07SP0102020-01-01
3346343RCEM07SP0102020-01-01
3346557RCEM07SP0102020-01-01
3346808RCEM07SP0102020-01-01
3346993RCEM07SP0102020-01-01
3347228RCEM07SP0102020-01-01
3347500RCEM07SP0102020-01-01
3347778RCEM07SP0102020-01-01
3347916RCEM07SP0102020-01-01
3348066RCEM07SP0102020-01-01
3348186RCEM07SP0102020-01-01
3348275RCEM07SP0102020-01-01
3348421RCEM07SP0102020-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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Calculation of Attendance through Sales data

Hi @Hamza-ali ,

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.

View solution in original post

5 REPLIES 5
Super User IV
Super User IV

Re: Calculation of Attendance through Sales data

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.


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Hamza-ali Frequent Visitor
Frequent Visitor

Re: Calculation of Attendance through Sales data

yes i am looking for how many promoters were present on a particular date, or in a month, or qtr 

Community Support Team
Community Support Team

Re: Calculation of Attendance through Sales data

Hi @Hamza-ali ,

 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

Hamza-ali Frequent Visitor
Frequent Visitor

Re: Calculation of Attendance through Sales data

https://we.tl/t-NIyjepV8Aw

 

what i need is number of 230 with measure... have a look of file

Community Support Team
Community Support Team

Re: Calculation of Attendance through Sales data

Hi @Hamza-ali ,

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.

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors