SingleStore Direct Query Connector 1.0

Power BI is a powerful data analysis and visualization tool that allows users to connect to various data sources. One of the data sources that can be connected to Power BI is the SingleStore Direct Query Connector 1.0. In this article, we will discuss how to connect to this data source using Power Query M Language code.

What is Power Query M Language?

SingleStore Direct Query Connector 1.0

Power Query M Language is a programming language used in Power Query to transform and shape data. It is a functional programming language that is used to create expressions and formulas for data analysis.

What is SingleStore Direct Query Connector 1.0?

SingleStore Direct Query Connector 1.0 is a data connector that enables fast and efficient querying of data from SingleStore. It allows users to connect to their SingleStore database and retrieve the data in real-time.

Connecting to SingleStore Direct Query Connector 1.0 from Power BI

To connect to SingleStore Direct Query Connector 1.0 from Power BI, follow the steps below:

1. Open Power BI Desktop and click on the “Get Data” button on the Home tab.

2. In the “Get Data” window, select “SingleStore Direct Query Connector 1.0” from the list of data sources.

3. In the “SingleStore Direct Query Connector 1.0” window, enter the Server name and Database name for your SingleStore database.

4. Click on the “Connect” button to establish a connection to your SingleStore database.

5. Once the connection has been established, you can select the tables or views that you want to use in your Power BI report.

Using Power Query M Language to Connect to SingleStore Direct Query Connector 1.0

To use Power Query M Language to connect to SingleStore Direct Query Connector 1.0, you need to create a new query and enter the M Language code. Follow the steps below:

1. Create a new query by clicking on the “New Source” button on the Home tab and selecting “Blank Query”.

2. In the new query window, click on the “Advanced Editor” button on the View tab.

3. In the “Advanced Editor”, enter the following M Language code:


let

Source = Sql.Databases(“ServerName”),

SingleStoreDatabase = Source{[Name=”DatabaseName”]}[Data],

Table = SingleStoreDatabase{[Schema=”dbo”,Name=”TableName”]}[Data]

in

Table


4. Replace “ServerName”, “DatabaseName” and “TableName” with the appropriate values for your SingleStore database.

5. Click on the “Done” button to save the M Language code.

6. The query will now retrieve the data from your SingleStore database and display it in the Power Query Editor.

7. You can now transform and shape the data as required and load it into your Power BI report.

Conclusion

In this article, we discussed how to connect to the SingleStore Direct Query Connector 1.0 data source from inside Power BI using Power Query M Language code. We covered the basics of Power Query M Language, the SingleStore Direct Query Connector 1.0 data connector and the steps involved in connecting to SingleStore Direct Query Connector 1.0 from Power BI. We also provided an example of how to use Power Query M Language code to retrieve data from SingleStore Direct Query Connector 1.0 and display it in Power BI. By following these steps, you can easily connect to SingleStore Direct Query Connector 1.0 and use it to analyze your data in Power BI.

Power BI Training Courses by G Com Solutions (0800 998 9248)

Contact Us

    Subject

    Your Name (required)

    Company/Organisation

    Email (required)

    Telephone

    Training Course(s)

    Your Message

    Upload Example Document(s) (Zip multiple files)

    Similar Posts