AnsweredAssumed Answered

Perform a calculation inside dynamic text

Question asked by ben_vk on Aug 20, 2017
Latest reply on Aug 22, 2017 by Dan_Patterson

Hey, 

 

I am trying to create a dynamic text box as a map label, and it needs to show the <last year> - <current year>, so the text today should look like 2016-2017.

 

I have found this below snippet is correct in displaying 2017, but I am unable to work out how to manipulate the below code to subtract 1 from the figure of 2017, in order to display last year.

 

<dyn type="date" format="yyy"/>

 

Any ideas? I would love for there to be a pythonic solution to my dilemma... I just don't know if that would even be possible in a text box.

 

Thanks

 

 

Nathan Duncan FYI

Outcomes