Forum Discussion

NPC's avatar
NPC
Icon for Helper I rankHelper I
4 years ago
Solved

Moving Target

Hello, I need to create a taget that increases automatically by 200 each week on Thursdays. The target will be diplayed on a card. The code below works but I want to avoid hard coding dates becaus...
  • AlexisOlson's avatar
    4 years ago

    Try something like this:

    Target = 200 * ( 13 + ROUNDDOWN ( ( TODAY() - DATE ( 2021, 11, 11 ) ) / 7, 0 ) )

    This adds the number of weeks beyond the initial 11/11/2021 to 13 before multiplying by 200.