Forum Discussion
EmilyM2019
6 years agoHelper II
DAX for date column
Hi all, I am stuck with a DAX if someone can help me. I have a table with 2 date columns, Column A and Column B. I want a new column (Column C) that will look and see if there is a value...
- 6 years ago
I'm sorry I forget to add the null cases too. Try this:
if [ColumnA] = "" or [ColumnA] = null then [ColumnB] else [ColumnA]Regards,
ibarrau
6 years agoSuper User
Well it should be similar
if [ColumnA] = "" or [ColumnA] = null then
if [ColumnB] = "" or [ColumnB] = null then
DateTime.LocalNow()
else [ColumnB] else [ColumnA]
You can continue adding if statements in the "then" or "else" in case you need them.
Regards,
EmilyM2019
6 years agoHelper II
Thanks for your help.