You can still use Power Query to do this and without opening Power Query. After retrieving the data one simply changes the format of the column to "Text" (in Excel, not Power Query), save, reopen, and refresh the file to see the column format retained.
If you have never seen how easy it is to convert a Crystal query to Power Query, one can use Crystal's
- "Database" menu
- "Show SQL Query" command
- copy the displayed query to the clipboard
Then transfer the query to Power Query using Excel's
- "Data" menu
- "Get Data" ribbon button
- "From Data Sources"
- "From ODBC" command (for Premium "From SQL Server Database")
- Paste the query from the clipboard into the Advanced option "SQL statement" field.
This short video demonstrates this.
------------------------------
Dan Burleson
Software Consultant
Connex Software
------------------------------