Showing results for 
Search instead for 
Did you mean: 
kstudsrud Frequent Visitor
Frequent Visitor

If Date is Blank

Hello All,

I am trying to do an if statement where if the date is blank return x,y. 

I have tried using this formula and a few others but cannot get it to work.

IF ( ISBLANK(VALUES(Combined[ClosingDate])), 0 , [ActualGainOnSale] / [FinalAllICosts] )

Any suggestions would be great.



v-yulgu-msft Super Contributor
Super Contributor

Re: If Date is Blank

Hi @kstudsrud,


Suppose [ActualGainOnSale] and [FinalAllICosts] measures, to create a if statement with a measure, please refer to:


Measure =
IF (
    ISBLANK ( SELECTEDVALUE ( Combined[ClosingDate] ) ),
    [ActualGainOnSale] / [FinalAllICosts]

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 47 members 1,041 guests
Please welcome our newest community members: