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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.