Forum Discussion
Is Today Column
- 6 years ago
hi Anonymous
For your case, that must be that your [Date] column has the different "time" in the same date. or it is a datetime column in edit queries but you just change the datatype in power bi.
For example:
So just use DATE Function to nested in the formula as below:
https://docs.microsoft.com/en-us/dax/date-function-dax
New Is Today = if(DATE(YEAR([date]), MONTH([date]), DAY([date])) = Today(), "Yes", "No")Result:
Regards,
Lin
Hi Anonymous
Try this:
Is Today = IF( Query2[new_ResolvedOn] = TRUNC( TODAY() ), "Yes", "No" )
Best regards,
Martyn
That did not work sorry, still getting the same issue, still not labelling correctly even when the dates are the same.
- az386 years agoCommunity Champion
Hi Anonymous
try
Is Today = if(DATE(YEAR([date]), MONTH([date]), DAY([date])) = Today(), "Yes", "No")or the overcoded option
Is Today = if(DATE(YEAR([date]), MONTH([date]), DAY([date])) = DATE(YEAR(Today()), MONTH(Today()), DAY(Today())) , "Yes", "No") - MartynRamsden6 years agoSolution Sage
Anonymous
Sorry, I missed a TRUNC() from the column name. It should have been:
Is Today = IF( TRUNC( Query2[new_ResolvedOn] ) = TRUNC( TODAY() ), "Yes", "No" )Most of the solutions suggested above would work in normal circumstances.
If you still don't have any luck, please share you pbix so we can investigate further.
Best regards,
Martyn