Our use of cookies

We use cookies to tailor your experience, gather analytics, and provide you with live assitance. By clicking "Accept" or continuing to browse our site you agree to the use of cookies. For more details please read our Cookie Policy.

Use Google Data Studio with SharePoint data

In this blog, we will go through essential steps on how to generate a report and chart in Google Data Studio using data coming from SharePoint lists. We will start off by looking at the lists which we are going to use for this demo and followed by how we can use SQList to replicate data from SharePoint Lists to SQL Server database which will later be used in Google Data Studio to generate a chart and to finish things off, we will look at how to display the report in SharePoint.

Scenario

Create a bar chart in Data studio which shows the total price and total current stock of products by Category Group.

SharePoint Lists

For this demo, we will use three custom lists with some data in SharePoint.

Product list

  • This list contains all the products data.
  • Columns
    • Title (Single Line of Text)
    • Unit Price (Money)
    • Current Stock (Number)
    • Category ID (lookup column linked to category list).

Category List

  • It is a custom list which contains data of all the product categories.
  • Columns
    • Title (Single Line of Text)
    • Category group ID (lookup column linked to Category groups list).

Category Group List

  • It is a custom list which contains data of all the product category groups.
  • Columns
    • Title (Single Line of Text)

Step-1: Create a Database in SQL Server

First off, we need a database that will be used for replicating the data coming from SharePoint lists.

  • Open SQL Server Management Studio and create a new database named “ProductsReportdemo”.

 

Step-2: Replicate and Synchronize data to Database

Secondly, we need to replicate the data from SharePoint lists into SQL Server database. We will use SQList to achieve that.

  • Open SQList Manager and click on “Create a new replication”.

  • Create a new SharePoint connection, enter the connection name and Table prefix
  • and select the SharePoint site which contains the lists and clicks next.

  • Next step is to select the replication lists, we will select the 3 lists which are going to be used for this exercise i.e. Product, Category and Category Group.

  • Next, enter the details for the destination SQL database connection which is the database we created earlier.

  • Last step is to give this replication a name, and keep the default options as checked and then click finish.
  • Once the replication is created, SQList replication service will start off for synchronizing the SharePoint lists and SQL database.
  • Once the service is started, you will see that some tables have been created in the destination database including the tables for the lists which we selected.

Note: SQList will keep the database in-sync with the SharePoint lists which means any updates made in the lists will be replicated in this database as well.

  • In order to generate a report in Google Data Studio, we will need a SQL view for the dataset.
  • So, Let’s create a view that includes the Product category title, Sum of UnitPrice and Sum of CurrentStock from Product list.

Step-3: Generate a Chart in Google Datastudio

  • First off, we need to export data from SQL Server in order to use it as a dataset in Google Data Studio.
  • Right click on Database and select export data.

  • Select SQL local instance as the data source.
  • Select Flat file as destination and save file as .csv.

  • Select the SQL View which we created earlier.

  • Click finish. Now we have exported the data of SharePoint list.
  • Open Google Data Studio and start creating a new Blank Report.

  • Select add data which will open up the data sources window.

  • Select File upload and then browse for the “.csv” which we generated earlier via SQL Export.

  • Now, we are ready to use this data for generating a chart.
  • Select Add a chart -> Bar chart.
  • Add CategoryGroup as the Dimension, and TotalPrice, TotalStock as Metrics of the chart

  • This will generate the report. We can view the published report by clicking on View.

  • In order to view this report in the SharePoint portal, We need to get the embed code for the report. Click on File-> Embed Report.
  • This will generate the embed code. Copy the code.

  • Go to SharePoint Portal and create a Page for the Report.
  • Insert Embed <> webpart and in properties enter the embed code we copied earlier.
  • This will render the report.

Conclusion

To summarize, we have gone through how to replicate and synchronize data from SharePoint lists to SQL Server database by using  SQList and then export the data to Google Data Studio and use it to generate a chart. We also looked at how to embed the generated report in SharePoint Portal via using Embed <> WebPart.

Latest articles

AxioWorks Newsletter February 2024: Partnerships, Upcoming SQList Update, and Summit Invitation

27 Feb 2024

Hello Reader, This February has been pivotal for AxioWorks as we’ve focused on laying strong foundations for the year. Here are the key […]
[read article]

How AxioWorks SQList Aligns With the Priorities of Software Buying Decision Makers

26 Feb 2024

As outlined in the “2024 Global Software Buying Trends” report by Gartner Digital Markets, the criteria that predominantly influence […]
[read article]

Maximising Power BI Reporting from SharePoint: The Strategic Advantage of AxioWorks SQList over Native Connectors

15 Feb 2024

In today’s data-driven environment, making informed decisions rapidly can offer a significant competitive edge. This is where Power BI comes […]
[read article]

AxioWorks Newsletter January 2024: A Promising Start to the New Year!

29 Jan 2024

Hello Reader, We hope this newsletter finds you well and thriving. At AxioWorks, we are embracing the new year with great enthusiasm and are […]
[read article]

Exciting New Partnership and Innovative SharePoint Tools from AxioWorks and Lightning Tools

17 Jan 2024

AxioWorks is excited to announce a strategic partnership with Lightning Tools, a leader in creating innovative SharePoint components. This […]
[read article]

AxioWorks Newsletter November 2023: ESPC23, new partnership, and SQList update!

30 Nov 2023

Hello Reader, Welcome to this month’s edition of the AxioWorks newsletter! We’re thrilled to bring you updates on our recent […]
[read article]

Why Support Legacy SharePoint Versions Like SharePoint 2010?

16 Nov 2023

In the fast-paced world of technology, where new versions and updates are continuously rolled out, a recurring question often arises: “Why […]
[read article]

Why Companies are choosing SQList over Power Automate

30 Oct 2023

In the realm of synchronisation services, AxioWorks’ SQList and Microsoft’s Power Automate (earlier known as PowerApps) have emerged as […]
[read article]

AxioWorks Newsletter October 2023: An exhilarating month.

28 Oct 2023

Hello Reader, As we step into the season of autumn, we are thrilled to share with you the latest developments and opportunities unfolding at […]
[read article]

Why Choose SQList for SharePoint Data Extraction Over DIY Solutions

16 Oct 2023

In the ever-evolving world of technology and data management, the question often arises: “Why should I use a product like #SQList when I can […]
[read article]

Get SharePoint and SQL news to your inbox

Stay up-to-date with industry news and trends, SQL and SharePoint innovations and all the latest from AxioWorks by subscribing to our monthly newsletter.

Subscribe to the AxioWorks newsletter

*