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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Only perform column calculation if dependant column is not blank

I know this one sounds simple but my formula will not work with a =CALCULATE() argument so i'm struggling with a filter or ISBLANK.

 

My formula which works fine is 

Overall Policy Term (years/months) = (TODAY()-[Original Policy Start Date].[Date])/365
 
which is calculating a decimal value. However, if [Original Policy Start Date] is blank, the value is over 100. I want the calculation to only perform if [Original Policy Start Date] is not blank, else I want the cell to remain empty.
1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

Couldn't you just do the following:

 

Overall Policy Term (years/months) = IF( NOT( ISBLANK( [Original Policy Start Date] )), (TODAY()-[Original Policy Start Date].[Date])/365 )

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User

Couldn't you just do the following:

 

Overall Policy Term (years/months) = IF( NOT( ISBLANK( [Original Policy Start Date] )), (TODAY()-[Original Policy Start Date].[Date])/365 )

AkhilAshok
Solution Sage
Solution Sage

Maybe a simple if statmeent in the calculated column:

Overall Policy Term (years/months) =
IF (
NOT ( ISBLANK ( Table[Original Policy Start Date] ) ),
( TODAY () - Table[Original Policy Start Date] ) / 365
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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