Forum Discussion
NB3
5 years agoHelper III
Custom/Conditional Column IF Date = Today then YES
Hello everyone, I'm using a dataset that updates everyday and we are trying to add a column to show the following: (1) IF Date = Today then YES It would update everyday for the current day. ...
- 5 years ago
NB3 , Try new columns like
new col 1 =
Switch( true(),
[Date]=today() , "Yes", "No")new col 2 =
Switch( true(),
[Submitted Date].date = [Last Activity].Date , "Yes",
[Submitted Date].date >= [Last Activity].Date && [Submitted Date].date <= [Last Activity].Date + 1 + time(9,0,0),"Yes",
"No"
) - 5 years ago
NB3 , let us change it a bit
new col 2 =
Switch( true(),
[Submitted Date].date = [Last Activity].Date , "Yes",
[Submitted Date] >= [Last Activity].Date + time(17,0,0)&& [Submitted Date] <= [Last Activity].Date + 1 + time(9,0,0),"Yes",
"No"
)
lbendlin
5 years agoSuper User
Please define "Today" - which time zone?
https://radacad.com/solving-dax-time-zone-issue-in-power-bi
For the second one you use this pseudo code:
if Last Activity - Dayvalue(Submitted) < 1.375