Forum Discussion
JorgePereira
6 years agoHelper I
Column comparing dates
Can you help me?
This column does not return the right value:
Consulta = IF(Colabs[Rehire_Date].[Date] <= DATE(YEAR([_Data Relatório]), MONTH([_Data Relatório]), DAY([_Data Relatório])),"OK","NO")
This column does not return the right value:
Consulta = IF(Colabs[Rehire_Date].[Date] <= DATE(YEAR([_Data Relatório]), MONTH([_Data Relatório]), DAY([_Data Relatório])),"OK","NO")
This works:
Consulta = IF(Colabs[Rehire_Date].[Date] <= DATE(2015, 4, 2),"OK","NO")
5 Replies
- parry2kSuper User
JorgePereira remove the .date from rehire date in your dax expression
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.⚡
- JorgePereiraHelper I
Thank you Parry! I removed it but it still doesn't work ....
- parry2kSuper User
JorgePereira ok, what is _datarelatio, is it a measure or column, are you adding a measure or column? there could be other reasons why it is not getting calculated