Few thoughts,
1. If you can avoid traps (Alias, multiple sql statements for each measure), you can keep those three tables in same context
2. Worst case, create derived table
Few thoughts,
1. If you can avoid traps (Alias, multiple sql statements for each measure), you can keep those three tables in same context
2. Worst case, create derived table