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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
beckyb822
New Member

DAX count days that sales made calls

I need to determine how many business days a sales person worked in a given month.  Basically need to count the days where they made more than one call.  Any ideas on what that DAX might look like?  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @beckyb822 ,

 

The possible solution is use DISTINCTCOUNT function.

Solution1 = DISTINCTCOUNT('Table'[Call Date])

vstephenmsft_0-1689561024406.png

Or use

Solution2 = CALCULATE(DISTINCTCOUNT('Table'[Call Date]),FILTER(ALLSELECTED('Table'),[EmpID]=MAX('Table'[EmpID])))

 

vstephenmsft_1-1689561593493.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

4 REPLIES 4
Anonymous
Not applicable

You could create a table like this:
SUMMARIZCOLUMNS("EmpID" [EmpID], "Calls", "Year", YEAR([call Date], "Month", MONTH([call date]), COUNT(call Date) 

beckyb822
New Member

My data is call records, so I first need to group/filter by rep.  Then count how many per day.  Then count how many days in a month the count was > 0.  

 

EmpIDCall NumberCall Date
11234562/1/2023
1898212/2/2023
2368922/10/2023
3639873/1/2023
3456233/20/2023
Anonymous
Not applicable

Hi @beckyb822 ,

 

The possible solution is use DISTINCTCOUNT function.

Solution1 = DISTINCTCOUNT('Table'[Call Date])

vstephenmsft_0-1689561024406.png

Or use

Solution2 = CALCULATE(DISTINCTCOUNT('Table'[Call Date]),FILTER(ALLSELECTED('Table'),[EmpID]=MAX('Table'[EmpID])))

 

vstephenmsft_1-1689561593493.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Anonymous
Not applicable

Can you provide an example small table (anonymised data).

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.