

@property
def columns(self):
    user = DatabaseColumn('Username', SimpleColumn('user'), format_fn=self.username)
    i_a = DatabaseColumn('Indicator A', SumColumn('indicator_a'), format_fn=unity)
    i_b = DatabaseColumn('Indicator B', SumColumn('indicator_b'), format_fn=unity)
    agg_c_d = AggregateColumn('C/D', combine_indicator, [SumColumn('indicator_c'), SumColumn('indicator_d')], format_fn=unity)
    aggregate_cols = [i_a, i_b, agg_c_d]
    if self.group_by:
        return ([user] + aggregate_cols)
    else:
        return aggregate_cols

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/tests/test_report_api.py UserDataSource.columns/original