Without a report which can be tested, it will be very difficult to help you. The best that can be done is a visual inspection of the report and then guesses on what the source of the problem might be.
The dimensional query appears to have a relational reference (or an inconsistent source) in the default value of the prompt macro. Mixing relational and dimensional portions of your package (or two separate dimensional sources) could cause this type of issue.
Other than that, there isn't much I can tell you by randomly poking through the report specification. Maybe you could explain what you are actually trying to achieve with the various caption, roleValue, and prompt macro functions; and the master detail relationship. There are likely other ways of doing what you want but you'll need to provide more information before I can suggest any alternatives.