STEPS TO REPRODUCE:
CAUSE:
It is a SQL engine defect. The SQL engine tries to all ‘max’ function to the metric which makes it like a nested aggregation metric (but in fact, it is not). And since by default, the VLDB setting “Nested Aggregation Outer Join” is using the value “Do not perform outer join on nested aggregation”, outer join is not performed.
Sometimes the ‘max’ in the SQL cannot be seen because it’s controlled by another VLDB called “Distinct/Group by option (when no aggregation and not table key)”. Choose “use group by” and ‘max’ function would be shown.
ACTION:
Currently this issue is still being reviewed for feasibility by our Technology team and it is not scoped for any upcoming scheduled Strategy release.
WORKAROUND:
The workaround is to change some VLDB settings as following:
+ Joins -> Nested Aggregation Outer Join -> Do perform outer join on nested aggregation when all formulas have the same level