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
JawaharPrem6
Frequent Visitor

Network Days Calculation for Power Bi

Hi All,

 

I have to calculate only for working days know as

"Rec Date"=02/28/2023 9:53 PM, 

Comp Date"=02/29/2023 9:53 PM

 

But it exclude Saturday and Sunday its work in Power Bi.

 

Thanks

Jawahar

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @JawaharPrem6 ,

 

check this video , it helped me with the same case as yours https://youtu.be/6JA6uy3ZRBA

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Idrissshatila
Super User
Super User

Hello @JawaharPrem6 ,

 

check this video , it helped me with the same case as yours https://youtu.be/6JA6uy3ZRBA

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi,

Thanks for share the link, its working but in my data table mentioned 2 date columns are text, hence max value is not supporting can you help on same.

ProcessTime = 
var _Start = 'Gobal_Master_Data_EU (3)'[Received_Date]
var _End = 'Gobal_Master_Data_EU (3)'[Completed_Date]
Return SUMX(
    CALCULATETABLE(
        Calendar_Table,
        DATESBETWEEN(Calendar_Table[Date],_Start,_End),
        Calendar_Table[workday]=1
    ),
    MAX(MIN(Calendar_Table[TimeEnd],_End) - MAX(Calendar_Table[TimeStart],_Start),0)*24
)

JawaharPrem6_0-1680002991414.png

 

Thanks

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.