The pivot table supports to visualize its result in exported (excel) document. And it exports as string and numbers but not pivot table. So the pivot related customization couldn't be done in exported document.
So, need to provide an option to export it as pivot table to support further pivot related customization in exported document.