I have a calculated date column with date+time values. I changed the data type to short date so the time component is no longer there.
I would like create a new column that contains the same values as the original column, but I need to filter out all records that have the value 05/29/2021. I’m having trouble figuring out how to format the date component of the dax for the calculated column.
Currently, I’m using the following dax:
new date column = IF(DimLeads[CreatedDate] = date(2021,05,29), BLANK(), DimLeads[CreateDate])
The current result is a new column which contains the date+time values, even though I changed the data time in the original column to be short date.
I think the better way to handle this is directly in Power Query. If you want to retain the time, then split the datetime column by delimiter into separate date and time fields. If you don’t need to retain the time, you can just click on Date and then select Date Only, per the screenshot below: