How to get data from snowflake to Power BI

Supported capabilities

  • Import
  • DirectQuery (Power BI semantic models)
  • Advanced options
    • Specify a text value to use as Role name
    • Relationship columns
    • Connection timeout in seconds
    • Command timeout in seconds
    • Database
    • Native SQL statement

Connect from Power Query Desktop

To make the connection to a Snowflake computing warehouse, take the following steps:

  1. Select Get Data from the Home ribbon in Power BI Desktop, select Database from the categories on the left, select Snowflake, and then select Connect.

Screenshot of the Get Data dialog, showing the Snowflake database selection.

  1. In the Snowflake window that appears, enter the name of your Snowflake server in Server and the name of your Snowflake computing warehouse in Warehouse.

  1. Optionally, enter values in any advanced options that you want to use to modify the connection query, such as a text value to use as a Role name or a command timeout.
  2. Select OK.
  3. To sign in to your Snowflake computing warehouse, enter your username and password, and then select Connect.

Screenshot of the Snowflake credential prompt, showing the Username and Password fields.

Note

Once you enter your username and password for a particular Snowflake server, Power BI Desktop uses those same credentials in subsequent connection attempts. You can modify those credentials by going to File > Options and settings > Data source settings.

If you want to use the Microsoft account option, the Snowflake Microsoft Entra ID integration must be configured on the Snowflake side. In Navigator, select one or multiple elements to import and use in Power BI Desktop. Then select either Load to load the table in Power BI Desktop, or Transform Data to open the Power Query editor where you can filter and refine the set of data you want to use, and then load that refined set of data into Power BI Desktop.

Screenshot of the Navigator with the test schema database open and the DimProduct table selected.

  1. Select Import to import data directly into Power BI, or select DirectQuery, then select OK.

Note

Microsoft Entra ID single sign-on (SSO) only supports DirectQuery.

Screenshot of Connection settings, which contains the Import and DirectQuery selections.

Connect from Power Query Online

To make the connection, take the following steps:

  1. Select the Snowflake option in the connector selection.
  2. In the Snowflake dialog that appears, enter the name of the server and warehouse.

Screenshot of the Snowflake connection builder in Power Query Online.

  1. Enter any values in the advanced options you want to use. If there are any advanced options not represented in the UI, you can edit them in the Advanced Editor in Power Query later.
  2. Enter your connection credentials, including selecting or creating a new connection, which gateway you would like to use, and a username and password.
  3. Select Next to connect to the database.
  4. In Navigator, select the data you require, then select Transform data to transform the data in Power Query Editor.

Screenshot of the online Navigator with the test schema database open and the DimProduct table selected.

 

Comments

Popular posts from this blog

Exception deserializing the package "The process cannot access the file because it is being used by another process."

Failed to execute the package or element. Build errors were encountered

SSRS INTERVIEW QUESTIONS