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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Belle2015
Helper I
Helper I

Calculated column to show days open

Hi I have created a calculated column to display the number of days open for an issue, the only thing is it seems to be doing a calculation for a blank row and will return a value like 45702 for it and I need help trying to remove this. Here is the calculation I have in my calculated column which returns the correct value for the open and closed items -

Days Open = IF (
ISBLANK ( 'Issues Raised'[Date Closed] ),
TODAY () - 'Issues Raised'[Date],
'Issues Raised'[Date Closed] - 'Issues Raised'[Date]
)

 

Belle2015_0-1739536451776.png

How do I stop it calculating the blank line?

1 ACCEPTED SOLUTION
Rupak_bi
Impactful Individual
Impactful Individual

Hi @Belle2015 ,

You ca put another If statement like

Days Open =
IF(ISBLANK ( 'Issues Raised'[Date] ),blank(),
IF (

ISBLANK ( 'Issues Raised'[Date Closed] ),
TODAY () - 'Issues Raised'[Date],
'Issues Raised'[Date Closed] - 'Issues Raised'[Date]
))



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

View solution in original post

2 REPLIES 2
Belle2015
Helper I
Helper I

Thank you this worked

Rupak_bi
Impactful Individual
Impactful Individual

Hi @Belle2015 ,

You ca put another If statement like

Days Open =
IF(ISBLANK ( 'Issues Raised'[Date] ),blank(),
IF (

ISBLANK ( 'Issues Raised'[Date Closed] ),
TODAY () - 'Issues Raised'[Date],
'Issues Raised'[Date Closed] - 'Issues Raised'[Date]
))



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.