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

No of Days Calculation while separating weekends

StaffNameEntryDateContractorTotalHours
arin1/3/2018 0:00San Antonia25.5
adam1/4/2018 0:00san Antonia22.5
agatha1/5/2018 0:00AUSTIN13
Annelie Marcilese1/8/2018 0:00Jonestown7
Mary1/9/2018 0:00San Antonia20
Brad1/10/2018 0:00San Antonia17.5
Brad1/11/2018 0:00San Antonia16
Brian 1/12/2018 0:00Temple23
Bry1/15/2018 0:00San Antonia28.5
kaitlyb1/16/2018 0:00San Antonia16
Charles1/17/2018 0:00Leander17.5
Candy1/18/2018 0:00Fredricksberg16
Hunter1/19/2018 0:00Z-ALIST28
Hirt1/22/2018 0:00San Antonia33.5
Kristine1/23/2018 0:00Dallas8.25
John1/24/2018 0:00Dallas35
Dave1/25/2018 0:00AUSTIN8
Dave1/26/2018 0:00AUSTIN18.25
Rob1/29/2018 0:00Dallas26.75
Derrin1/30/2018 0:00Temple8
Shorey1/31/2018 0:00Temple26
Tamy2/1/2018 0:00HOUSTON16
Ellie2/2/2018 0:00HOUSTON16
Emilie2/5/2018 0:00AUSTIN25
Erica2/6/2018 0:00San Antonia16
Jacob2/7/2018 0:00BATON24
Jose2/8/2018 0:00San Antonia38.5
Jose c2/9/2018 0:00Dallas30
Jessie2/12/2018 0:00San Antonia20
jina2/13/2018 0:00AUSTIN6.5
Holy2/14/2018 0:00Jonestown23
Mills2/20/2018 0:00Temple16
Juan2/21/2018 0:00HOUSTON6.75
Timberlake2/22/2018 0:00Dallas28
Ken2/23/2018 0:00San Antonia30.5
Liza2/26/2018 0:00Jonestown16
Marin2/27/2018 0:00AUSTIN19.5
Miranda2/28/2018 0:00Dallas30
Lynn3/1/2018 0:00AUSTIN9.75
Martinez3/2/2018 0:00Temple29.2
omar3/5/2018 0:00Jonestown16
Vicky3/6/2018 0:00HOUSTON21
Philip3/7/2018 0:00Fredricksberg15
Ryan3/8/2018 0:00Fredricksberg16
Sandy3/9/2018 0:00Leander8
Wislom3/12/2018 0:00Dallas26.5
Smith3/13/2018 0:00Z-ALIST16.5
sophia3/14/2018 0:00AUSTIN15
amay3/15/2018 0:00AUSTIN22.5
Taylor Parker3/19/2018 0:00MOBILE24
Peggy3/22/2018 0:00Dallas26.5
Tanya3/23/2018 0:00HOUSTON14.5
Vero3/26/2018 0:00HOUSTON16
Waren3/27/2018 0:00Dallas17.5
Shelly3/28/2018 0:00AUSTIN8.25
Sharon3/29/2018 0:00HOUSTON24.5

 

I am trying to Calculate no of days while seprating the Weekends.   I have tried few calculations  but none seems to be working.  I would appreciate any help !!

4 REPLIES 4
v-yuta-msft
Community Support
Community Support

Hi Tan,

 

You may create another calendar table and mask the weekends and holiday using some dax formula, please refer to these blogs:

https://forum.enterprisedna.co/t/number-of-working-days/258/9

https://powerpivotpro.com/2012/11/networkdays-equivalent-in-powerpivot/

 

Regards,

Jimmy Tao

Anonymous
Not applicable

I may not be able to do this is as the data source is SQL

Greg_Deckler
Super User
Super User

So, are you looking for Net Work Days?

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/m-p/367362

 


@ 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

Thanks Greg

 

 I am wanting to calculate no of days based on hours and Entry Date only.  (There is no "Second Date")

 

The Calculation is based on (total  hours/(no of days(individual has worked(on weekdays and on weekends)* 8)) 

 

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.