Forum Discussion

jcountryman's avatar
jcountryman
Helper I
6 years ago
Solved

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?

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

4 Replies

  • Anonymous's avatar
    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).
  • 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's avatar
      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...