Forum Discussion
Elisa112
1 year agoHelper V
Networkdays function with blank start dates
Hi Experts I am using the network days function : Meeting date diff= NETWORKDAYS('Meetings'[1st Meeting],'Meetings'[2nd Meeting])-1 However some of the 1st meetings in the column are blank...
Ray_Minds
1 year agoSolution Supplier
In Power BI, you can handle blank values in your measure or calculated column by using the IF and ISBLANK functions:
- ISBLANK('Meetings'[1st Meeting]): Determines if the 1st Meeting column contains a blank value.
- IF statement: If the 1st Meeting is blank, the formula outputs BLANK(). Otherwise, it computes the difference using the NETWORKDAYS function.
- Subtracting 1: Adjusts the result by subtracting 1 from the calculated value.
Did I answer your question? Mark my post as a solution!