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
jcountryman
Helper I
Helper I

Value for indefinite future/past dates?

Sorry in advance if this is poorly worded:  

Is there a value that can be used as a placeholder for indefinite dates? For example, something like [DATE]>FARFUTURE() that will _always_ be false regardless of [DATE] but where FARFUTURE() a valid date value?

1 ACCEPTED SOLUTION
jcountryman
Helper I
Helper I

I don't know what's so hard about saying it, but there's no such thing as an indefinite date value in DAX. @Anonymous 's condensending reframing of the problem notwithstanding.

 

FWIW, it's DATE(9999,12,31). ("Google it." Whatever, man.)

View solution in original post

4 REPLIES 4
jcountryman
Helper I
Helper I

I don't know what's so hard about saying it, but there's no such thing as an indefinite date value in DAX. @Anonymous 's condensending reframing of the problem notwithstanding.

 

FWIW, it's DATE(9999,12,31). ("Google it." Whatever, man.)

Anonymous
Not applicable

@jcountryman

I don't know what's condescending about my answer. I wrote "google for it" meaning that I didn't know the highest value straight away. I myself google for such things. But whatever...
Anonymous
Not applicable

Sure, you can use a value for this purpose. Just take the highest possible value of the datetime data type (google for it).
harshnathani
Community Champion
Community Champion

Hi @jcountryman ,

 

Not sure about your usecase. Can you elaborate it a little further.

 

IF (Table [Date] > TODAY(), 0, 1)

 

You can also look at thi  blog 

https://community.powerbi.com/t5/Community-Blog/Date-as-Dateadd-Decoding-Date-and-Calendar-5-5-Power...

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

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