Unfortunately, due to DQAs’ limited functionality the only option for your use case would be to create an expression. However, your aim could be easily achieved in our commercial products.
To avoid stack overflow you might consider allocating more memory to a plan or IDE itself. There are 2 options of how it can be done:
Open dqa.ini file located in the root folder of the DQA build with a text editor. This file contains the JAVA_OPTS that will be used by the virtual machine on start.
Edit the -Xmx row and substitute the number (256 by default) by a higher number for reserving more memory, e.g. -Xmx1024m where 1024M means 1024MBs of memory.
Open Runtime Configuration in IDE (see screenshot).
In the Runtime tab -> VM Arguments set the Xmx variable, which configures to the maximum heap size reserved by the Java Virtual Machine. Follow the notation for passing this parameter, e.g., -Xmx1024m.
Please, let me know if you have further questions.