Home › Discussions › Questions & Answers › Retaining Leading Zeros in CSV Output

3 replies

  • Support Enginatics

    To prevent Excel’s automated type detection, you must modify your SQL to explicitly format the column as text by prefixing it with an equal sign and enclosing it in double quotes: ‘=”‘ || column_name || ‘”‘ column_alias.

  • If I apply this modification to my SQL, what happens if I run the report in XLSX format instead of CSV?

  • Support Enginatics

    If the report runs in XLSX output format, Blitz Report automatically removes the =” and ” characters from the data, ensuring the data displays correctly without the formatting characters.

  • You must be logged in to reply to this post.