Are you struggling to connect HubSpot to Power BI? If yes, then you have landed in the right place. This post is about the steps involved in getting data from HubSpot and using that as a source for analysis using Power BI, a popular business intelligence tool from Microsoft.
Power BI does not support the HubSpot connector natively but allows importing data in various formats. You will use a CSV file import for this attempt. HubSpot supports exporting various data elements through its user interface. It also provides a rich set of APIs to extract data. You can connect HubSpot to Power BI using the following methods:
Introduction to Hubspot
HubSpot is an inbound marketing and sales software. Companies utilize it to attract visitors to the product, convert visitors to leads, and close leads as customers. You can use their tools to host websites and landing pages, create blogs related to the products and email sequences for product status, and manage interactions with your leads and customers. It can be done while analyzing the success of the campaign and tracking user behavior.
HubSpot has various tools and functionalities to make buyers feel different at every part of the buying process. The tools are divided up into “Hubs” that can be purchased separately, but when they’re combined, they work together to give you a full suite of tools across your marketing, sales, and support teams. Read more about the features of HubSpot Sales Hub to choose the best HubSpot Sales Hub plan that suits your organization.
Integrate your marketing and sales data in HubSpot with Hevo’s automated pipelines. Then, transform, load, and visualize your sales team’s performance on Power BI easily. Why Use Hevo for HubSpot integration?
- Effortless Data Transfer: Connect Mixpanel, HubSpot to any destinations with ease.
- Real-Time Data Sync: Keep your data current and accurate across platforms.
- No-Code Interface: Set up and manage your integration without technical expertise.
Try Hevo today for streamlined data integration and enhanced insights for your marketing and sales teams!
Try out Hevo for seamless data integration
What is Power BI?
Microsoft Power BI is a business analytics service. It provides business intelligence capabilities and interactive visualizations for your data. It helps you create reports and dashboards to get better insights into your data. Power BI also supports custom visualization using custom SDK.
Power BI is available as Power BI Service, Power BI Desktop, and Power BI Mobile. Power BI Desktop is a free offering, which includes custom visualization, publication, and transformation of your data. Power BI Pro costs $9.99 per user per month, whereas Power BI Premium costs $4995 per month on a dedicated cloud.
Methods to Setup Hubspot to Power BI Connection
Method 1: Importing CSV Generated via HubSpot APIs
HubSpot allows access to API through an Oauth-based authentication and via developer token-based authentication. For this exercise, you will be using a developer token-based authentication. You will begin by going to the HubSpot admin panel and generating the API keys.
- Go to settings and generate API keys using the integrations tab.
- Once you have the API keys, use the below curl command to fetch the contact details from HubSpot.
curl -o contacts_details.json https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=<api_key>&count=10
The output of the command will be a JSON file named contacts_details.json. The above API provides access to all the customer contacts that are stored in your HubSpot account. The API is paginated with a limit of 100 items. If your list is beyond this limit, you will need to use an additional parameter called vid-offset to fetch the rest of the items.
- You will now use a command-line utility called ‘jq’ to extract the relevant details from the JSON file and convert it into a CSV file.
cat contacts_rdetails.json | jq -r ".contacts[] | [.vid,.properties.firstname.value,.properties.company.value,.properties.lastname.value] | @csv" >> contacts_data.csv
The generated CSV file will look as below.
9333497,raghav,hevo ltd,heera
9333498,dawson,mercury.com,richard
9333495,user1_name,,user2
9333494,romira,tel-mario ltd,hector
9333493,marsh,tel-extel inc,jack
- The above CSV file can now be imported to Power BI. To do this, go to Power BI and click “Get Data” and then, import the CSV file as shown below.
Drawbacks
The above approach uses HubSpot APIs to extract data. The biggest advantage of using this approach to connect HubSpot to Power BI is that it can be automated by converting the above set of steps into a script. But there are a few drawbacks to this approach.
- Additional steps to handle pagination and API access limits of HubSpot should be implemented.
- The Power BI import is still manual because of the lack of Power BI native support. Power BI API supports uploading data as excel files. So as a workaround, converting CSV to excel and then using Power BI APIs to import can be considered.
- The method above shows using the contacts API. HubSpot has a large list of APIs, which the developer should be familiar with to use all the data with Power BI.
Method 2: Importing CSV Generated via HubSpot User Interface
HubSpot provides a simple user interface to download CSVs for various data elements. To download the contact details as CSV, follow these steps:
- Login to HubSpot and navigate to “Contacts”. In the Contacts view, click the “Export View” as shown below.
- Click “Export” and select “CSV” as the file format.
3. HubSpot will send an email to the registered email account with a link to download the CSV file.
4. Use this CSV file and import data to Power BI as mentioned in the previous method.
Drawbacks
The advantage of using this method to connect HubSpot to Power BI is that it does not require you to write code. But this comes with the obvious drawbacks as listed below.
- There is very little possibility of automating this flow.
- Power BI import is still manual. Even though Power BI supports importing data via API, it does not support CSV file import. A workaround is to first convert files to Excel and then use the import API.
- There are limited opportunities to execute a transformation before uploading to Power BI.
Import your Data from HubSpot to BigQuery
Import your Data from HubSpot to Snowflake
Import your Data from HubSpot to Redshift
Connect Power BI Hubspot with a pre-built connector
Middleware solution certified by HubSpot is one of such pre-built connectors. This is available directly on the HubSpot App Marketplace.
You can query and manipulate data within Power BI without any troubles with the integrity of the HubSpot database. The steps involved in using this pre-built connector are,
- Download the HubSpot-certified API app -> choose the “Connect an App” from the PC portal authorize to connect to your HubSpot portal -> type in all the necessary details to enable the service.
- Connect a new or existing Power BI document by selecting the “Get Data” button on the Power BI toolbar.
- In the next window, select the “Database” from the list on the left menu. Then select “SQL Server Database.”
- Type in your login credentials -> select OK -> provide user details -> highlight “Database” option on the left side of the pop-up window -> select “Connect.”
- Now, you can populate tables with details from HubSpot -> choose the tables you want to access in Power BI -> select “Load.”
Why Connect Hubspot and PowerBI?
The HubSpot Power BI Integration aids data analysis for business analysts and decision-makers. The HubSpot to Power BI connector is easy to set up with just a few clicks, and it comes with the necessary cloud-based server and data warehouse.
Data may be queried and updated in Power BI without compromising the HubSpot database or SQL server’s integrity. This enables you to reconcile sales and accounting data within Power BI without incurring the costs of directly linking the two systems.
With capabilities like quick measurements, grouping, forecasting, and clustering, Power BI allows business users to delve deeper into data and discover trends they might have missed otherwise. You’ll feel right at home in Power BI if you’re familiar with Excel.
Conclusion
In this blog, you have learned about the various ways to connect HubSpot to Power BI. Each method has its own merits and demerits. But if you want to integrate your data before opting for analysis and visualization in a BI platform, then you can use Hevo. SIGN UP for a 14-day free trial and see the difference!
Share your experience of connecting HubSpot to Power BI in the comment section below.
FAQs
1. How do I connect CRM to Power BI?
Use Power BI’s in-built connectors to connect to CRM systems like Salesforce or Dynamics 365. Authenticate, select entities or tables, and load data into Power BI for analysis.
2. How do I pull data into Power BI?
Use the Get Data feature in Power BI to pull data from sources like databases, APIs, files, or cloud services. Configure the connection, apply transformations, and load data into the report.
3. Can you push data to Power BI?
Yes, you can push data to Power BI using the Power BI REST API. This allows real-time data streaming to dashboards from custom applications or services.
Vivek Sinha is a seasoned product leader with over 10 years of expertise in revolutionizing real-time analytics and cloud-native technologies. He specializes in enhancing Apache Pinot, focusing on query processing and data mutability. Vivek is renowned for his strategic vision and ability to deliver cutting-edge solutions that empower businesses to harness the full potential of their data.