Skip to main content
Solved

Formula to filter dates to only show last week

  • November 15, 2023
  • 2 replies
  • 124 views

Kelly_Vorrasi1
Forum|alt.badge.img+9

I have a team that wants to send a weekly digest that shows updates only from the previous week. I found a formula that can show if a date is this week or not but can't figure out a way to show just dates from the previous week

 

Best answer by Sho

For example, this formula could display "previous week" if the date was previous week.

IF( {Date}, IF( DATETIME_FORMAT(DATEADD(NOW(),-1,"weeks"),"w")=DATETIME_FORMAT({Date},"w"), "previous week" ) )

 

2 replies

Forum|alt.badge.img+21
  • Inspiring
  • Answer
  • November 15, 2023

For example, this formula could display "previous week" if the date was previous week.

IF( {Date}, IF( DATETIME_FORMAT(DATEADD(NOW(),-1,"weeks"),"w")=DATETIME_FORMAT({Date},"w"), "previous week" ) )

 


Kelly_Vorrasi1
Forum|alt.badge.img+9
  • Author
  • Known Participant
  • November 15, 2023

For example, this formula could display "previous week" if the date was previous week.

IF( {Date}, IF( DATETIME_FORMAT(DATEADD(NOW(),-1,"weeks"),"w")=DATETIME_FORMAT({Date},"w"), "previous week" ) )

 


Thank you so much! I was absolutely overthinking it and this is much more straight forward.