Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Elisa112
Helper V
Helper 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 so the output become "36789".
How can I format the function to ignore blank start dates.  
Thanks in advance
 
1 ACCEPTED SOLUTION

Hi @Elisa112 ,

 

Do you mean on the visualization level? You just need to select show items with no values for the column you want to have that information:

MFelix_0-1732706017938.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

8 REPLIES 8
Ray_Minds
Continued Contributor
Continued Contributor

In Power BI, you can handle blank values in your measure or calculated column by using the IF and ISBLANK functions:

 

  1.  ISBLANK('Meetings'[1st Meeting]): Determines if the 1st Meeting column contains a blank value.
  2.  IF statement: If the 1st Meeting is blank, the formula outputs BLANK(). Otherwise, it computes the difference using the NETWORKDAYS function.
  3. Subtracting 1: Adjusts the result by subtracting 1 from the calculated value.

Ray_Minds_0-1732769534970.jpeg

 


Did I answer your question? Mark my post as a solution!

Elisa112
Helper V
Helper V

@MFelix @Kedar_Pande Thanks for your help, I actually used conditional formatting to hide the incorrect values from appearing

Kedar_Pande
Super User
Super User

@Elisa112 

Calculated column


Meeting date diff =
IF(
ISBLANK('Meetings'[1st Meeting]),
BLANK(),
NETWORKDAYS('Meetings'[1st Meeting], 'Meetings'[2nd Meeting]) - 1
)

💌If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

 

MFelix
Super User
Super User

Hi @Elisa112 ,

 

From the syntax I believe you are creating a column you can try something similar to this:

 

Meeting date diff=  IF('Meetings'[1st Meeting]) <> BLANK(), NETWORKDAYS('Meetings'[1st Meeting],'Meetings'[2nd Meeting])-1)

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix Thank you, yes I am using  calculated columns, I tried your function, it works but does not show the records with a blank start date, which I still need as there are other subsequent dates which need to be visible for the record.

Any Ideas?

Thanks in advance

In the first post you refer you want to ignore blank start dates, it seems like what you are writing in this last post is not matching that.

 

Can you please elaborate on what are the possible results with a example.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix although I want to ignore any blanks in the 1st meeting column, I do need the dates for the 2nd and 3rd meeting for the customer, see example below of the output I need

 

Cust ID   1st Meeting   2nd Meeting   Day Diff 1-2   3rd Meeting  Day Diff 2-3

001         blank             1 Jan 2024          blank          5 Jan              4

002         blank             blank                   blank         7 Jan              blank

 

This is a summarised table, the original meeting table is very large and the meetings,  have been ranked, therefore the 3rd meeting is the most recent. 

Is there a way to show null if there is no date for the first meeting but still include the record in the table ?

Thank you in advance

Hi @Elisa112 ,

 

Do you mean on the visualization level? You just need to select show items with no values for the column you want to have that information:

MFelix_0-1732706017938.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors