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

If Date is Blank

Capture.JPG
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.

Thanks

 

1 REPLY 1
Highlighted
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] ) ),
    0,
    [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

Announcements
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: 221 members 2,362 guests
Please welcome our newest community members: