Skip to main content
Answer

Conversion failed when converting date and/or time from character string

  • April 8, 2024
  • 4 replies
  • 101 views

I am trying to create a filter for my Dashboard KPI, but receiving the ‘ Conversion failed when converting date and/or time from character string’ error. Not really sure why as the parameter I am using in the filter should not be a string (see attached). What am I doing wrong?

Best answer by lauraj46

Hi @aakoglu69 ,

For GI and Dashboard filters, I believe the syntax is: @Today - 3

Hope this helps!

Laura

4 replies

dcomerford
Captain II
Forum|alt.badge.img+15
  • Captain II
  • April 9, 2024

Try enclosing the calculation in CDate so in value1 put CDATE(DateAdd (Today(), ‘m’ ,-3))


  • Author
  • Freshman I
  • April 9, 2024

Thank you for the quick reply. Unfortunately, it didn’t work. I get the same error.

I have also tried replacing TODAY() with @DATE or @MonthStart and still didn’t work


lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • April 10, 2024

Hi @aakoglu69 ,

For GI and Dashboard filters, I believe the syntax is: @Today - 3

Hope this helps!

Laura


  • Author
  • Freshman I
  • April 10, 2024

Thank you so much. Yes, that did it. Changed 3 to 90 for 3 months and boom 😁