Perform a calculation inside dynamic text

08-20-2017 06:44 PM
Occasional Contributor III


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.


Nathan Duncan‌ FYI

0 Kudos
1 Reply
MVP Emeritus

Nothing within the dynamic text section explicitly, but that doesn't rule out producing a static text element from a calculation elsewhere I suspect

0 Kudos