Marian Szetyinszki on 09 Apr 2021 11:19:56
Enable an engine built in formula to calculate Excel equivalent of networking days: Number of business days between 2 dates, excluding weekends and bank holidays provided as an optional list of dates.
Currently only complex solutions using other DAX / Query formulas can be used , this solution is very slow and memory intense when applied across many rows and Country holidays table in a multi country regions .
- Comments (23)
- Merged Idea (4)
RE: NETWORKDAYS DAX /Power Query formula
Sorry, does NOT work in calculated column
RE: NETWORKDAYS DAX /Power Query formula
The proposed method does work in calculated column. And should consider it as fundamental functions. Thanks!
RE: NETWORKDAYS DAX /Power Query formula
But it doesnot work if one of the date is blank or nulldate. is there anyway we can calculate the days between two dates column when some of the value is blank.
RE: NETWORKDAYS DAX /Power Query formula
I agree after LOTS os searching this post helped me to get a function which is similar.
https://community.powerbi.com/t5/Desktop/Network-days-with-decimals/td-p/405476
RE: NETWORKDAYS DAX /Power Query formula
It's not a hard issue to work around, but something that shouldn't require a work around. All current solutions rely on non-standard holiday table locations. If there was a Microsoft provided standard solution, there'd be a universal method we'd be able to use to reproduce this fairly basic functionality. There's data still living in Excel that I'm reluctant to move for this specific reason.
RE: NETWORKDAYS DAX /Power Query formula
I added this to the Quick Measure Gallery here:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/m-p/367362
RE: NETWORKDAYS DAX /Power Query formula
Aside from being really useful (so should have been added by now?), why are there functions in Excel that are not in Power BI?