Your expression is not going to work.
Because,When you remove Transaction Date and Due Date From Your Dimension.
your expression failed to evaluate which Transaction Date Out of 3 in your case and
Which Due Date out of 3 need to be take.
Basically your expression is working on detail level not on Summary Level.
My suggestion is use Set analysis in calculations.