This has only been happening since the latest update. I've gone from 2.6.6 to 2.7.72 connect. None of my calculation fields work properly when a relevant is filled with a selected() function.
See field_17 and field_17_ow
In 2.7, a change was made to prevent questions with calculations that were also not relevant from submitting data. At the same time questions are not conducting calculations when becoming relevant. This appears to be causing the issue you are seeing. This behaviour will be corrected in a future release of Survey123.
Manual refreshing of the referenced question (when the field_17 question is relevant) will be needed for now.
Retrieving data ...