derived variable code split in three files - Events, GroupBy, TxnLevel