Skip to main content
New Idea

Case Formula in data designer - allow date option

Related products:None

andreammelde

Right now, you can use case formula for String, Number, and Boolean but it would be great to allow Date.

 

For example, I did a comparison between two date by subtracting them from each other to compare to columns of dates to determine which was the later date. In the next transform, I was to do a case where if DIFF is POSITIVE then select DATE 1 otherwise select DATE 2. This will allow me to do a comparison between two columns of dates

3 replies

Forum|alt.badge.img+2
  • Expert ⭐️
  • 227 replies
  • May 12, 2021

I would argue this enhancement is still needed.

 

If we had it, the solution would be one task with a case statement. What I proposed with the union will require an additional 3 unions/tasksminimum.


Forum|alt.badge.img
  • Contributor ⭐️⭐️⭐️
  • 15 replies
  • March 22, 2023

Running into the need for this. Upvoting!


jordan_cook
Forum|alt.badge.img+2
  • Contributor ⭐️⭐️⭐️⭐️
  • 47 replies
  • March 5, 2025

I just ran into this need the other day. My workaround was to convert dates to strings in one transformation, then do a case statement in a second transformation, and then parse back into a date in the a third transformation. Not pretty.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings