Re: How to add calculation in expression that based on the value from dimension field.
You may want to comment on whether either of two posts helped or not as well... I would suspect folks have been hesitant to spend more time on things not knowing if you checked what they suggested in those posts? Once you comment on that, I would expect you may get some further responses.
Here is a Design Blog post on Set Analysis that may be of some help too: