NETWORKDAYS - Use Today() if End Date is Blank

Iceshade

Board Regular
Joined
May 22, 2017
Messages
104
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Quite new to Power BI and absolutely loving it !
I am working with a dashboard and trying to determine # of network days between 2 dates. Where the end date is Blank, I cannot work out how to use Today's date if it is blank.

Any guidance please would be greatly appreciated.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
=NETWORKDAYS(A1,IF(B1="",TODAY(),B1))
Thank you - I tried this however it seems to use "" as text and DAX throws an error that it can't do a comparison between date column and text column.
 
Upvote 0
Hi All,

Quite new to Power BI and absolutely loving it !
I am working with a dashboard and trying to determine # of network days between 2 dates. Where the end date is Blank, I cannot work out how to use Today's date if it is blank.

Any guidance please would be greatly appreciated.

I think I have worked it out:
=NETWORKDAYS([Start Date],IF([End Date]= BLANK(),TODAY(),[End Date]))
 
Upvote 0

Forum statistics

Threads
1,223,348
Messages
6,171,572
Members
452,411
Latest member
colpie

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top