This is a lot easier, and faster, if you just put them into a single tabular model. The master detail might run multiple queries depending on the RDBMS platform.
Try this
1. Create a new query, add a tabular model.
2. Add both of your queries as children of the new tabular model.
3. Add a...