SUMMARYA report is querying against two databases, and description information is stored in primary database while fact is stored in secondary database. Temporary table will be generated in secondary database.
STEPS TO REPRODUCEExample Data
Primary Database
table_A
Secondary Database
table_B
- Create attribute A, attribute B from column no and column name in table_A.
- Create fact, metric based on column percentage in table_B.
- Put attribute A, attribute B from step 1 and metric from step 2 on a grid.
- Check report SQL. Temporary table is generated in secondary database.
WORKAROUND- Create a fact based on column no in table_A.
- Create a metric using expression max(fact);
- Go to Project Configuration -> Report Definition -> SQL Generation -> Database Instance Ordering, choose option "Use project level database instance ordering" and ensure the Primary Database Instance is ahead of ;
- Put the dummy metric in step2 into the grid.
Then temporary table will be generated in primary database.
Article Reference Number: KB440394 KB40394