Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

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
dax
Community Support
Community Support

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.

View solution in original post

5 REPLIES 5
Greg_Deckler
Super User
Super User

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.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

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

dax
Community Support
Community Support

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

Anonymous
Not applicable

https://we.tl/t-NIyjepV8Aw

 

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

dax
Community Support
Community Support

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.