Starting with the release of Strategy ONE (March 2024), dossiers are also known as dashboards.



In Strategy 10.11 and some earlier versions in Connect Live mode, Data Engine removes the attribute in the Sort By field during SQL execution of the Last() function (above, it is Month Id), and so generates incorrect SQL by evaluating at the wrong level.
The following SQL statement shows how Data Engine evaluates using the TOT_COST order, so it returns the highest value, which is 96,636:
select a11.CATEGORY_ID CATEGORY_ID,
Max(a11.TOT_COST) Keep (dense_rank Last order by a11.TOT_COST asc) WJXBFS1
from T177MQWH.MNTH_CATEGORY_SLS a11
where a11.CATEGORY_ID in (1)
group by a11.CATEGORY_ID
This is not an issue when using a cube made In-Memory.
In the new fix, the attribute that is in the Sort By field of the metric is NOT removed, and so the correct value will be returned when using the Last function in Connect Live mode.
The correct SQL for the scenario above is:
select a11.CATEGORY_ID CATEGORY_ID,
Max(a11.TOT_COST) Keep (dense_rank Last order by a11.MONTH_ID asc) WJXBFS1
from T177MQWH.MNTH_CATEGORY_SLS a11
where a11.CATEGORY_ID in (1)
group by a11.CATEGORY_ID
Strategy Internal Reference number for this technical note is KB483216 and DE96587.