Now I want to add an ISBLANK test on the Referral date so that it sends back a text note instead of a blank space
Here is my formula:
=IF(
ISBLANK(tbl_HomeFirst[Referral Date]),
“Date Missing”,
SUMX(tbl_HomeFirst,DATEDIFF(tbl_HomeFirst[Referral Date],tbl_HomeFirst[Reablement Start Date],DAY))
But its not working as I get an error message below
"The expression is not valid or appears to be incomplete. Please review and correct the expression. The end of the input was reached."
Unfortunately I am not allowed to share the file as it contains confidential patient data. I was hoping experts could help me find the problem based on the code above I can send Photo of the file if that helps
Hi @Ducati. I’d check with a zero instead of the “Date Missing” text string; I’d guess DAX falls down when you use two different data types for the THEN and ELSE of an IF statement.
Greg
Hi @Ducati, we’ve noticed that no response has been received from you since the 20th of January. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the checkbox. Thanks!
Awesome thank you so much - that worked just great and thank you for the ISBLANK comment - I am still making the transition from Excel formula to DAX and its a process to think in columns instead of rows