
Report: Quarter, Count of Customers, Count of Customers (month level):

Executing this report yields the following unexpected result:

Executing the report SQL directly against the warehouse yields the following, more logical, results:
QUARTER_ID | QUARTER_DESC | WJXBFS1 | WJXBFS2 |
20001 | Q1 00 | 46045 | 12845 |
20001 | Q1 00 | 46045 | 14295 |
20001 | Q1 00 | 46045 | 18905 |
20002 | Q2 00 | 61690 | 18354 |
20002 | Q2 00 | 61690 | 21516 |
20002 | Q2 00 | 61690 | 21820 |
20003 | Q3 00 | 36181 | 8331 |
20003 | Q3 00 | 36181 | 12539 |
20003 | Q3 00 | 36181 | 15311 |
20004 | Q4 00 | 67965 | 13758 |
20004 | Q4 00 | 67965 | 20160 |
20004 | Q4 00 | 67965 | 34047 |
20011 | Q1 01 | 29888 | 8401 |
20011 | Q1 01 | 29888 | 9009 |
20011 | Q1 01 | 29888 | 12478 |
20012 | Q2 01 | 57891 | 15551 |
20012 | Q2 01 | 57891 | 20940 |
20012 | Q2 01 | 57891 | 21400 |
20013 | Q3 01 | 37893 | 9387 |
20013 | Q3 01 | 37893 | 12563 |
20013 | Q3 01 | 37893 | 15943 |
20014 | Q4 01 | 69976 | 15054 |
20014 | Q4 01 | 69976 | 22800 |
20014 | Q4 01 | 69976 | 32122 |
CAUSE:If the VLDB property "Dimensionality model" is set to "Use dimensional model," the report will behave in this way. In the dimensional model, metrics calculated at a level lower than the report level will be calculated exactly as defined, producing the unusual results shown above.
In the VLDB property editor, go into the Tools menu and select "Show Advanced Settings" for this property to be visible, as shown below:

Dimensional model SQL | Relational model SQL |
select a14.QUARTER_ID QUARTER_ID, | select a14.QUARTER_ID QUARTER_ID, |
When "Use relational model" is chosen for the Dimensionality model VLDB property, the month-level metric's level will be calculated instead at Quarter level, because Quarter is the lowest level attribute in the time hierarchy present on the report. In this scenario, the results will appear as follows:

Alternately, if it is required to display both monthly and quarterly data, ensure that the 'Month' attribute (the child attribute) is also on the template.