Forum Discussion
Power BI Project Management
- 4 years ago
&& works but the message i have is "DAX comparison operations do not support comparing values of type Text with values of type Date. Consider using the VALUE or FORMAT function to convert one of the values."
I am unable to use the new column for any visualization.
Best,
Yeboah
Can you check whether the below code works or not?
Due status:
Due Status= if([end]<=today(),"Overdue", "Not Overdue")
Past Due check:
PastDueCheck = if([Due status]= "Overdue" and([Project Status]<> "Completed" or [Project Status]<> "Cancelled", "Past Due-Check")
Or you can do both in a single column.
PastDueCheck= if([end]<=today() and ([Project Status]<> "Completed" or [Project Status]<> "Cancelled", "Past Due-Check")
Reply if there is any issues,
If this post helps, then please consider accepting it as the solution to help the other members find it more quickly.
Regards,
Atma.
Sure, I will try this. Do I need to format this new column as text?
Regards,
Yeboah
- Dhacd4 years agoResolver III
My Bad here is the single column code updated
PastDueCheck= if([end]<=today() and ([Project Status]<> "Completed" or [Project Status]<> "Cancelled"), "Past Due-Check")Use the above code and confirm,
If this post helps, then please consider accepting it as the solution to help the other members find it more quickly.Regards,
Atma.- Ykankam4 years agoHelper I
Same error.
- Dhacd4 years agoResolver III
Apologied,
Can you use && instead of and
|| instead of ORPastDueCheck= if([end]<=today() && ([Project Status]<> "Completed" || [Project Status]<> "Cancelled"), "Past Due-Check")
And try this code.If this post helps, then please consider accepting it as the solution to help the other members find it more quickly.
Regards,
Atma.