Forum Discussion
myti
9 years agoHelper II
Date format problem
Dear Experts, I have a calculated Measure which is an output in Date format like 1/1/2017. Once I want to use this output in if condition I can not get the correct answer and "if condition" can ...
v-sihou-msft
9 years agoMicrosoft Employee
Make sure your [Measure] returns date type. As I tested, it supposes to work with your original formula.
Regards,
parry2k
9 years agoSuper User
Try this:
Measure = If ( HasOneValue('landing-pages'[ipg:month]) , Values ('landing-pages'[ipg:month]), BLANK())
CalculatedColumn=IF([Measure]=BLANK() ||[Measure]<>DATE(2017,1,1),0,1 )Assuming ipg:month is data type, as v-sihou-msft suggested, make sure your measure data type is also Date