Getting Started With Analytics 2.0 (Beta)
- Last updated
- Save as PDF
Table of Contents
Overview
In Beta
Existing Analytics customers have the opportunity to participate in the Open Beta for Analytics 2.0. Please reach out to your Customer Success Manager to learn more.Analytics 2.0 provides a powerful, user-friendly solution for leveraging your project data, making informed decisions and gaining deeper insights into your overall project performance and outcomes.
Key features include:
- Data refreshed every hour that you can pull at any time. Plus, data is monitored for accuracy and completeness.
- All Procore data can be pulled out, including custom fields, workflows, change history and user activity.*
- New data platform with significantly increased scalability and data availability.
- Pre-built Power BI reporting.
*All datasets won't be available at the start of open beta. Full feature parity with Analytics 1.0 coming soon.
Considerations
- You can continue using your current version of Procore Analytics, even if you opt into the Open Beta for Analytics 2.0.
- If you're not seeing the callout to join the open beta, another Company Admin in your company may have already declined the beta agreement.
- To re-activate the invitation, contact your Customer Success Manager for reactivation.
- If you're having trouble connecting to Procore Analytics 2.0, contact your Procore Customer Success Manager.
Common Questions
- How frequent is the data refresh?
- How do I connect to Procore Analytics 2.0?
- Will I lose access to existing reporting?
- Will customers on Data Extract only today have to migrate to 2.0?
- Do I still need Power BI licences to access PA 2.0?
- How do I update the custom reports that were developed in-house?
- How will the process for copying data to my data warehouse be affected by Procore Analytics 2.0?
How frequent is the data refresh?
Data refreshes throughout the day on an hourly basis.
How do I connect to Procore Analytics 2.0?
Analytics 2.0 can be accessed in several ways. The most common way would be to connect in Power BI. See Getting Started With Procore Analytics 2.0.
Will I lose access to existing reporting?
Procore Analytics 1.0 will be available until 2025. We aim to give users plenty of time to switch over to Analytics 2.0.
Will customers on Data Extract have to migrate to Procore Analytics 2.0?
Yes, customers on Data Extract will need to move over to Procore Analytics 2.0, now called Cloud Connector (powered by Delta Share). Procore Analytics 2.0 will also include PowerBI reports as a feature that customers are not required to use, but they will be available for all customers with Procore Analytics 2.0.
Do I still need Power BI licences to access Procore Analytics2.0?
Power BI licences will still be required to share Power BI reports.
How do I update the custom reports that were developed in-house?
Procore Analytics 2.0 now uses Databricks Delta Sharing. Any existing connections to Analytics 1.0 (Azure SQL) must be changed. Several report tables and columns have been renamed. The basic changes you will need to make include updating reports to use the new Delta Sharing connector, updating table and column names and updating visuals that may have broken after you've made the changes mentioned above. Depending on how your report was built, there may be additional considerations. See Getting Started With Procore Analytics 2.0.
How will the process for copying data to my data warehouse be affected by 2.0?
Procore Analytics 2.0 now uses Databricks Delta Sharing for data access. You can find out more about delta sharing here.
For any further questions or concerns regarding Procore Analytics 2.0, please reach out to the Analytics 2.0 Beta Community Group.
Permissions
Learn which user permissions are required to take the described actions in this tool.
Permissions
| | The action is available on Procore's Web, iOS, and/or Android application. Click to view the article.
Users can take the action with this permission level.
Users can take this action with this permission level AND one or more additional requirements, like granular permissions.
Action | None | Read Only | Standard | Admin | Notes |
---|---|---|---|---|---|
Generate A Data Token |
Anyone with 'Admin' level access to Analytics can grant additional users access to the Analytics tool. |
Get Access to Your Procore Data
To start accessing your Procore data, you must generate an access token. The access token is a string of digits you will enter in your BI system to access data. Typically, users who need access tokens are data engineers or Power BI developers.
Considerations
- You must have the Procore Analytics tool enabled.
- To enable Analytics 2.0, a Company Admin must first accept the Open Beta agreement.
- By default, all Company Admins have 'Admin' level access to Analytics in the Directory.
- Anyone with 'Admin' level access to Analytics can grant additional users access to the Analytics tool.
- Users must have 'Admin' level access to the Analytics tool to generate a data token.
Steps
- Accept Beta Agreement and Activate Procore Analytics 2.0
- Grant Data End-Users Admin Level Access to Analytics 2.0
- Connect to Your Data
Accept Beta Agreement and Activate
Once invited to the open beta, Company Admins will see a popup banner inviting you to accept the beta agreement the next time you log in to Procore. If you do not see the popup, another Company Admin may have already declined the beta agreement. Please reach out to your Customer Success Manager to get reactivated.
Grant Data End-Users Admin Level Access to Analytics 2.0
Once any Company Admin accepts the beta agreement, all Company Admins will see Procore Analytics in the tool dropdown menu within Procore. To add Analytics Admins (e.g. someone in IT or a data analyst) to assist with your next steps, navigate to the user's Company level Directory card and give them Admin-level access to the Analytics tool.
Connect to Your Data
Anyone with Admin-level access to the Analytics tool will be able to generate data access tokens through the Analytics tool. Data end users should generate data tokens and will then need to take the additional steps in the next section of this guide to connect the data to a data warehouse or BI solution. To begin connecting your data, follow the steps below:
- Log in to Procore.
- Click the Account & Profile icon in the navigation bar.
- Click My Profile Settings.
- Click the Procore Analytics Tokens tab.
- Next you will choose your connection with Procore Analytics.
- If you have Databricks, enter your identifier and click Connect.
- Choose which token type you will generate.
- Click Generate Token.
Note: The token will disappear after one hour or if you navigate away from the page. To generate a new token, return to Step 1. - The next section of this guide will help you connect to your downstream solution.
Connect to Power BI
Connect With Analytics Models
- Download Credentials File
- Run user_exp.py script
- Run as PySpark
- Run as Python
- Choose Your Own Method
Download Credentials File
- Create a file called 'config.share.
- Add the fields below:
{
"shareCredentialsVersion": 1,
"bearerToken": "",
"endpoint": "",
"expirationTime": ""
} - Add the bearerToken, endpoint, shareCredentialsVersion and expirationTime values received from Procore to the config.share file.
Run user_exp.py script
You can use the following scripts to create a config.yaml file with the necessary configurations.
- For Azure Storage:
cron_job: #true/false
run_as: #pyspark/python
source_config:
config_path: #path to the config.share file
tables:
- '' # table name if you want to download a specific table. Leave it empty if you want to download all tables
source_type: delta_share
target_config:
auth_type: service_principal
client_id: #client_id
secret_id: #secret_id
storage_account: #storage-account name
storage_path: #<container>@<storage-account>.dfs.core.windows.net/<directory>
tenant_id: #tenant_id
target_type: azure_storage
- For MSSQL DB:
cron_job: #true/false
run_as: #pyspark/python
source_config:
config_path: #path to the config.share file
tables:
- '' # table name if you want to download a specific table. Leave it empty if you want to download all tables
source_type: delta_share
target_config:
database: #target database
host: #target hostname:port
password: #password
schema: #target schema (default to procore_analytics)
username: #username
target_type: sql_server
Run as PySpark
If your environment is already set up with Spark, choose the 'pyspark' option when requested or once the 'config.yaml' is generated, you can run the following commands to download the reports to the data directory.
- For Writing to ADLS Gen2 Storage:
spark-submit --packages io.delta:delta-sharing-spark_2.12:3.1.0,org.apache.hadoop:hadoop-azure:3.4.0,com.microsoft.azure:azure-storage:8.6.6,org.apache.hadoop:hadoop-common:3.4.0 --exclude-packages com.sun.xml.bind:jaxb-impl delta_share_to_sql_spark.py - For Writing to MSSQL DB:
spark-submit --packages io.delta:delta-sharing-spark_2.12:3.1.0 --jars <Location of mssql-jdbc jar> delta_share_to_sql_spark.py
Run as Python
- From the command line, navigate to the folder by entering “cd <path to the folder>” command.
- Install required packages using “pip install -r requirements.txt” or “python -m pip install -r requirements.txt”.
- Open SSIS and create a new project.
- From the SSIS Toolbox drag and drop Execute Process Task.
- Double click Execute Process Task.
- Go to the Process tab.
- Next to Executable, enter the path to python.exe in the Python installation folder.
- In WorkingDirectory, enter the path to the folder containing the script you want to execute (without the script file name).
- In Arguments, enter the name of the script delta_share_to_azure_panda.py you want to execute with the .py extension and click Save.
- Click Start in the top ribbon menu.
- During the execution of the task, the output of the Python console is displayed in the external console window.
- Once the task is done it will display a tick.
Choose Your Own Method
Delta Sharing is an open protocol for secure data sharing. You can find the public GitHub repository for Delta Sharing at https://github.com/delta-io/delta-sharing. The repository includes examples and documentation for accessing shared data using various languages such as Python and Spark Connector (SQL, Python, Scala, Java, R).
Note
Make sure you have appropriate permissions and access rights to download the required files and run Docker containers on your system. Always follow security best practices and guidelines provided by Procore when handling sensitive data and credentials.Connect to Databricks
- Log in to your Databricks environment.
- Click Catalog.
- Under Delta Sharing, select Shared with me.
- Click Sharing Identifer to copy and share with the Procore support team.
Note: When the sharing identifier is received, Procore will add it to the system. - Under Providers, click Procore's identifier.
- Click Create Catalog.
- Enter your preferred name for the shared catalog.
- Click Create.
Your shared catalog and tables will now show under the provided name in the Catalog Explorer.
Migrate an Existing Report
- Open the report you want to migrate.
- Open the Query Editor.
- Click New Source then click More.
Note: The values you are given will not be the same as the values in the examples below. - In the search bar, type 'Delta Sharing'.
- Select Delta Sharing, then click Connect.
- Type or paste the Delta Sharing Server URL you received from the Procore.
- Select the table you want to migrate.
- In the new query, click Advanced Editor.
- Copy the contents before the word 'in'. This will include the 'Source' and 'Navigation' steps from the query.
Note: The screenshot below is just an example. Your values will be different.
- Click Done.
- Open the 'Company'.
- Replace the 'Source' and 'Navigation' steps with the ones copied from Step 9.
Note: Make sure you paste the text before the word 'in'. - Click Done.
- Add a comma at the end of your text if there are additional applied steps.
- Look through the query for errors that may occur. For example, some columns do not exist in the latest version of Procore Analytics so we can remove these from Applied Steps.
- Next, you will remap the project's table.
- Open Projects Query.
- Click Advanced Editor.
- Paste the same connection code from above (copied from companies query) to the first two lines of the project query (before any steps starting with #).
- The new query now looks like the screenshot below.
- Add a comma and change the code to point to a different table, like the example below:
Example:
Source = DeltaSharing.Contents("https://nvirginia.cloud.databricks.c...d-4692f841b2ca",
[rowLimitHint=null]),pa_internal_test = Source{[Name="pa_internal_test"]}[Data],
public_company_only = pa_internal_test{[Name="public_company_only"]}[Data],
companies1 = public_company_only{[Name="companies"]}[Data],
Change -> companies1 = public_company_only{[Name="companies"]}[Data],
To -> Projects = public_company_only{[Name="projects"]}[Data],
- “[Name=”projects”]” is what points to the correct table in Analytics 2.0.
Rename Report Tables and Columns
- Open the Query Editor for the report you need to rename.
- Find the column that is not in Procore Analytics 2.0.
- In the formula bar, replace the Analytics 1.0 column with the new one for Analytics 2.0.
- Another method would be to add a step to rename the columns from Analytics 2.0 to the values you had in your previous report.
- For example, in Analytics 1.0, project_stage_name is now stage_name.
- If you go to the navigation step, you can rename the column here and fix errors in subsequent steps.
- Click Insert after making all updates.
- Repeat this process for any other renamed columns.
- When you return to the error, you will see the issue resolved.
Connect to Power BI Desktop
- Open your Power BI Desktop.
- From the Home page, click New to expand the section.
- Click Report.
- Click Get data from another source.
- In the search bar, type 'Delta Sharing'.
- Select Delta Sharing, then click Connect.
- Type or paste the Delta Sharing Server URL you received from Procore.
- If this is the first time you are connecting to this source, you will be prompted to provide your Delta Sharing Bearer Token.
- After authentication, select the Procore Analytics tables you want to bring into your Power BI report.
- Select Load to view your report or select Transform Data to make more transformations in Power Query.
Set Up Row-Level Security
- Configure 'Project' and 'ProjectUser' Power BI Relationship
- Create a New RLS Role
- Add Users to a RLS Role
Configure 'projects' and 'project_users' Power BI Relationship
Configuring a Power BI relationship between the projects and project_users tables connects the data from these tables. See Microsoft's Create and manage relationships in Power BI Desktop . Two options for configuring this relationship are outlined below.
Option 1
- Open a Procore Analytics report in Power BI Desktop.
- On the Home tab, click Manage Relationships.
- In the 'Manage relationships' window, scroll through the options and select project_users (project_id) and click Edit.
- Complete the following in the 'Edit relationship' window:
- Under 'Cardinality', select Many to one (*:1) and mark the 'Make this relationship active' tickbox. These options should be selected by default.
- Under 'Cross filter direction', select Both and mark the 'Apply security filter in both directions' tickbox.
- Click OK to close the 'Edit relationship' window.
- Click Close to close the 'Manage relationships' window.
- Save the report.
- Continue with the steps in Create a New RLS Role.
Option 2
- Open a Procore Analytics report in Power BI Desktop.
- Click the Model view.
- Check the relationship between the 'projects' and 'project_users' tables. The relationship should have a (1) next to the 'projects' table and an asterisk (*) next to the 'project_users' table.
Tip
To only view the relationship betweeen the 'projects' and 'project_users' tables (as shown below), click the plus icon (+) next to the 'All tables' tab to create a new layout and add the 'Project' and 'ProjectUser' tables to the layout by dragging and dropping them from the Properties > Fields menu into the grey space. - Select the relationship by double-clicking on the connecting line between them.
- Complete the following in the 'Edit relationship' window:
- Under 'Cardinality', select Many to one (*:1) and mark the 'Make this relationship active' tickbox. These options should be selected by default.
- Under 'Cross filter direction', select Both and mark the 'Apply security filter in both directions' tickbox.
- Click OK to close the 'Edit relationship' window.
- Save the report.
- Continue with the steps in Create a New RLS Role.
Create a New RLS Role
- On the 'Modeling' tab, click Manage Roles.
- In the 'Manage roles' window, complete the following in each column:
- In the 'Roles' column, click Create and enter a name for the role in the 'New role' field. Project User is the role name used in the image below.
- In the 'Tables' column, select project_users.
- Select Switch to DAX editor.
- In the 'Table filter DAX expression' column, enter [email_address] = userprincipalname().
- Click Save in the 'Manage security roles' window.
- Save and publish the report.
- Continue with the steps in Add Users to a RLS Role.
Add Users to a RLS Role
Once the RLS table relationship is configured, users must be added to RLS roles in the Power BI service in order to view a Procore Analytics report. For more information, see Microsoft's Row-level security (RLS) with Power BI: Working with members .
- Open a Procore Analytics report in the Power BI service.
- Under 'Datasets', click the ellipsis (...) next to the report you want to set up RLS for and click Security.
- Select the role you want to add one or more users to.
Tip
Using Office 365 Distribution Groups can simplify the process of adding multiple users to an RLS role at one time. See Microsoft's Get started with Microsoft 365 Groups in Outlook . - Enter their email addresses and click Add.
- Click Save.