Forum Discussion
msimmonsmcse
Helper I
5 years agoTrouble with date comparison
I am trying to write a measure that will calculate the number of business days in a given period of time. I have a date table that starts at 1/1/2019 and ends on 12/31/2020. Here is my measure: ...
VNRaju
5 years agoNew Member
Try
var EndDate = FORMAT (IF(MAX('Date'[Date])>TODAY()-1, TODAY()-1, MAX('Date'[Date]),"mm/dd/yyyy" )
Good luck!