Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
NB3
Helper III
Helper 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.

 

Also, we need another column to show:

IF Submitted Date = Last Activity Date then YES

BUT

= Yes, if Last Activity is the same day as Submitted

= Yes, if the Last Activity is the following business day before 9h AM.

 

Thanks in advance for your help!

 

Nick

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@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"
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

@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"
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@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"
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

Your second formula works perfectly. I got one question though for the first one. 

 

It's working but it shows "YES" only for the row whose Date/Time is today at 12:00:00 so I have 1 showing and should have 70.

 

Also, would you happen to have a formula that shows a "YES" column for applications submitted after 5pm yesterday and before 9am today?

 

Thanks a lot for your help !

 

Nick

@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"
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

It works perfectly!

 

Thanks a lot for your help,

 

Nick

lbendlin
Super User
Super 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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors