When adding a custom calculation and this consist of calculations on measures the options for adding before and after is not possible. Please add that option also on custom calculations on measures.

Photo Viewer

View photos in a modal