I have this custom date that I created as a measure:
Start Date = DATE(YEAR(MAX(Loss[dte_month_end]))-1,12,31)
So this part looks fine in PowerBI and seems to be the right format.
So now I created a new column where I'm going through my data to check whether a record is equal to my "Start Date" as defined above.
IsStart = IF(Loss[dte_month_end]=[Start Date], TRUE, FALSE)
but the weird thing is that all records are evaluated to false. I know this is actually not the case in my actual data, and I could find actual records with dte_month_end = 12/31/2017 as shown above.
Can someone help me understand why the IF statement would not be able to evaluate this correctly? I initially thought that this may be a case of the DATETIME format being inconsistent - but I purposefully changed both formats to be the same to no avail.
Thanks.
Edit1----------- FYI: This is the format that my dte_month_end field has:
Edit2 -- I tried changing the dte_month_end format to Date instead of DateTime, and it still doesn't seem to work:
Start Date
is definitely a Date type, so double check[dte_month_end]
is a Date type as well. - Alexis OlsonStart Date
is defined as a Date field, not a DateTime field. You don't want to match that with a DateTime field. - Alexis Olson