Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I am trying to make a new coloumn which should state if a certain date-field is later than another date-field, but I receive the value #ERROR, and an error-message saying the DAX comparison cannot compare values of True/False with values of Text - but I have set both fields/coloumns to Date.
Any one know how to solve?
Same with Tilbuddato as this:
Solved! Go to Solution.
Okay, well you could always try using another IF-function outside of the current one to try to manipulate the answers back to text.
Finally, testing different things with good help from PowerUserR, this worked:
It seems the DAX-formula in Power BI won't let you return a text-result on this date-comparison - but with this somewhat strange workaround it will 🙂
Finally, testing different things with good help from PowerUserR, this worked:
It seems the DAX-formula in Power BI won't let you return a text-result on this date-comparison - but with this somewhat strange workaround it will 🙂
I have now tried inserting DATEVALUE, VALUE, FORMAT and other similar to the date-fields in the logic-part of the DAX-formula with no success - but:
When I changed the result-part of the formula from "Ja" and "Nei", to 0 and 1, this seemed to solve the error.
This works:
All though I would like a text-result.
Okay, well you could always try using another IF-function outside of the current one to try to manipulate the answers back to text.
Hi,
I don't see any errors in the calcualtion but I was thinking that the date format of using "." could maybe trouble dax? Try to replace with "/" and see if that works.
Appreciate your respons and suggestion. Thanks!
I have now tried different date-formats, but with no success. Still the same error-message.
Hi again,
Could you try using DATEDIFF?
Try setting the condition to see if it's a positive or negative
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
117 | |
85 | |
49 | |
38 | |
28 |
User | Count |
---|---|
189 | |
76 | |
73 | |
54 | |
42 |