Change file format and create pivot