QuestionQ24
VerifiedScripting and AutomationA developer needs to aggregate monthly energy-usage data across a four-month period for each subscriber in an email. The monthly usage values are stored in variables for each month as follows:
SET @jan = LOOKUP("energyusage","jan","subscriber_key",_subscriberKey)
How should AMPscript be used to produce the total?
Community Discussion