cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Export commands and output of the Databricks Notebook to MS Excel

AJ270990
Contributor II

I have a Databricks notebook and I have several headers, SQL commands and their output. I am currently copying the output and SQL commands manually to excel for a report. How can I reduce the manual work of copy pasting from Notebook to excel and automate it?

1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz
Community Manager
Community Manager

Hi @Abhishek Jain​, You can download a query result as a Excel file. You can download up to approximately 64,000 rows to an Excel file.

  1. Click the kebab context menu for a tab in the results pane.
  2. Select Download as [Excel] File.

imageIf you cannot download a query, your administrator has disabled download for your Databricks SQL instance.

View solution in original post

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @Abhishek Jain​, You can download a query result as a Excel file. You can download up to approximately 64,000 rows to an Excel file.

  1. Click the kebab context menu for a tab in the results pane.
  2. Select Download as [Excel] File.

imageIf you cannot download a query, your administrator has disabled download for your Databricks SQL instance.

Kaniz
Community Manager
Community Manager

Hi @Abhishek Jain​ , We haven’t heard from you since the last response from me and I was checking back to see if my suggestions helped you.

Or else, If you have any solution, please share it with the community, as it can be helpful to others.

Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.