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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
ADSL
Post Prodigy
Post Prodigy

Avg. visit plan per day

Hi BI Community Team,

 

I have a table of "Visit Plan" that it's preparing by sales rep and submit to us every month.

 

Follow the working day of the month (e.g. no. working day in July have 26 day), we want to know the avg. visit plan per day by sale rep, sales team.

 

Logic_SR = total no. of visit plan / total no. working day

Logic_Team = total no. of visit plan / total. no of sales rep belong to team / total no. working day

 

Any suggestion/advise?

 

Thanks and Regards,

1 ACCEPTED SOLUTION

Hi,

Write this measure.  File attached.

Avg. Visit per team = DIVIDE(DIVIDE([Visit Plan],[Working Days (Month)]),DISTINCTCOUNT('Visit Plan'[SALESREP_CODE]))

Untitled.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

9 REPLIES 9
Ashish_Mathur
Super User
Super User

Hi,

Based on the sample table that you have shared, show the expected result very clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur ,

Thank you for your feedback. 

 

May I need your support of this post? the screenshot below, it's the expect result and calculation.

 

Avg. visit per day should be divide by no. working day when we choose the "Month" slicer. for team, Avg. visit per day should be no. visit plan / total sales rep of team / no. working day.

 

2023-07-08_11-12-39.png

Thanks and Regards,

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

Just simplify the measure to:

Working Days (Month) = CALCULATE(COUNTROWS('Calendar'),'Calendar'[DayInWeek]<=5)

and everything falls in place.

Hope this helps.

Untitled.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur,

Thank you for helpful feedback.

 

Sorry... May I need your help of Avg. visit plan by team? That's calcaluation is: 

Visit plan / No. of sales rep / Working Day

 

Thanks and Regards,

Hi,

Write this measure.  File attached.

Avg. Visit per team = DIVIDE(DIVIDE([Visit Plan],[Working Days (Month)]),DISTINCTCOUNT('Visit Plan'[SALESREP_CODE]))

Untitled.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur ,

Thank you very much for your helpful feedback and advise.

 

Best Regards,

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.