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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

ifnull statement comparison operator

 
I've recently had help with the following post  Converting MySQL ifnull to ... I think if(isblank... @amitchandak 
 which helped to convert the SQL command from  ifnull(meme_trm,"2099-01-01") >= "2020-01-01" to IF(ISBLANK(Lives[meme_trm]),DATE (2099, 01,01) ,Lives[meme_trm] )
 
However the >= operator is an important piece of this.  What is the best way to stitch in the >=? (the greater than or equal to operator)?
2 REPLIES 2
lbendlin
Super User
Super User

COALESCE(Lives[meme_trm],"2099-01-01") >= "2020-01-01"

 

will return true/false.  What do you want to do with the result next?

Anonymous
Not applicable

Thanks for your help, I'm working to use this as a filter, I'll replace the  "2020-01-01" with min('Calendar'[Date]) below.  I'll test this and reply later, thanks again.

 

MJLT Total Lives =
CALCULATE([Running Total Lives]
,
Filter (Lives,
(
Lives[meme_eff] <= MAX('Calendar'[Date])
&&
Lives[clip_eff] <= MAX('Calendar'[Date])
&&
Lives[meme_trm] >= min('Calendar'[Date])
&&
Lives[clip_trm] >= min('Calendar'[Date])
&&
Lives[cli_trm] >= min('Calendar'[Date])
)
)
) +0

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.