(self, ui_aggregation)
return aggregation_map[ui_aggregation]
Convert an aggregation value selected in the UI to an aggregation value to be used in the UCR
        configuration.

        :param ui_aggregation: UI aggregation value
        :return: UCR config aggregation value
Convert an aggregation value selected in the UI to an aggregation value to be used in the UCR
        configuration.
Convert an aggregation value selected in the UI to an aggregation value to be used in the UCR configuration .
def _get_ucr_aggregation(self, ui_aggregation):
        """
        Convert an aggregation value selected in the UI to an aggregation value to be used in the UCR
        configuration.

        :param ui_aggregation: UI aggregation value
        :return: UCR config aggregation value
        """
        assert ui_aggregation in UI_AGGREGATIONS, (
            '"{}" is not recognised as a Report Builder UI aggregation'.format(ui_aggregation)
        )
        aggregation_map = {
            UI_AGG_AVERAGE: UCR_AGG_AVG,
            UI_AGG_COUNT_PER_CHOICE: UCR_AGG_EXPAND,
            UI_AGG_GROUP_BY: UCR_AGG_SIMPLE,
            UI_AGG_SUM: UCR_AGG_SUM,
            None: UCR_AGG_SIMPLE,
        }
        return aggregation_map[ui_aggregation]
def _get_ucr_aggregation ( self , ui_aggregation ) : assert ui_aggregation in UI_AGGREGATIONS , ( '"{}" is not recognised as a Report Builder UI aggregation' . format ( ui_aggregation ) ) aggregation_map = { UI_AGG_AVERAGE : UCR_AGG_AVG , UI_AGG_COUNT_PER_CHOICE : UCR_AGG_EXPAND , UI_AGG_GROUP_BY : UCR_AGG_SIMPLE , UI_AGG_SUM : UCR_AGG_SUM , None : UCR_AGG_SIMPLE , } return aggregation_map [ ui_aggregation ]