cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Partisan
Post Partisan

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

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Only perform column calculation if dependant column is not blank

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
Highlighted
Solution Sage
Solution Sage

Re: Only perform column calculation if dependant column is not blank

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
)
Highlighted
Super User III
Super User III

Re: Only perform column calculation if dependant column is not blank

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

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors