If you are building a formula which utilizes objects from a single query then you can use the simple formula as I mentioned earlier..
If you are building a formula based on objects from more than one query then you will have to merge all the dimension used in the formula before the formula will work..