Transforming and analyzing data