Forum Discussion
Converting Case Statement to DAX
hi, sakhtar
You could just use IF Function to nesting it
Hi Lin!
Thank you so much for your quick response, I really appreciate it :)
Unfortunately, I'm getting the following error:
"DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values."
I'm sure its because I have some dates and some text fields but how do I keep my current formats and still do the IF statement. I need to keep my dates formatted to do other calculations so I cannot convert everything to either TEXT or DATE.
- v-lili6-msft7 years agoCommunity Support
hi, sakhtar
You could put steps of conversion in the formula. otherwise, how to compare a date value and text value.
Of course, Consider using the VALUE or FORMAT function to convert one of the values.
If you still have the problem, please share some sample data and your expected output.
Best Regards,
Lin