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

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

Top Solution Authors