cristianivanoff
Technical User
I have this formula in a cross tab with the Distinct count as summary type:
numbervar nummer:=12;
if {Melody_subs_status_log.affective_from}<=date(dateadd("m",-nummer,{?SlutDatum}))
and not ({Melody_subs.subs_status_id} in [3,7])
and (isnull({Melody_subs_status_log.affective_to}) or {Melody_subs_status_log.affective_to}>date(dateadd("m",-nummer,{?SlutDatum})))
then {Melody_subs.subs_id}
This work fine. But for these 'Distinct' {Melody_subs.subs_id} I also need to do a calculation. For every {Melody_subs.subs_id} that is in the Distinct count I need to calculate 'Melody_subs.recurring_price*Melody_subs.attributenr'. How can I do this?
I use CR9.
BR
cristian
numbervar nummer:=12;
if {Melody_subs_status_log.affective_from}<=date(dateadd("m",-nummer,{?SlutDatum}))
and not ({Melody_subs.subs_status_id} in [3,7])
and (isnull({Melody_subs_status_log.affective_to}) or {Melody_subs_status_log.affective_to}>date(dateadd("m",-nummer,{?SlutDatum})))
then {Melody_subs.subs_id}
This work fine. But for these 'Distinct' {Melody_subs.subs_id} I also need to do a calculation. For every {Melody_subs.subs_id} that is in the Distinct count I need to calculate 'Melody_subs.recurring_price*Melody_subs.attributenr'. How can I do this?
I use CR9.
BR
cristian