There is a scenario where a custom subtotal needs to be displayed in a report, and the subtotal values should be retrieved from warehouse instead of calculated by Analytical Engine. For example, there is a table as below in the warehouse:

It is required that the subtotal MTD and YTD are displayed as the values stored in the warehouse, i.e., 5 and 7 respectively for GROUP1, and 6 and 3 for GROUP2.
This knowledge base article provides a workaround to achieve this requirement. Below are the detailed steps of the workaround:





For the metric YTD, it is the same strategy - create a Replace Total metric first to only retrieve the value of true YTD Total in the warehouse, then create a subtotal that uses this Replace Total metric in the definition.