Git Product home page Git Product logo

safetyculture-power-query-connector's Introduction

SafetyCulture Power Query Connector

The SafetyCulture Power Query Connector provides a data connection for SafetyCulture in Power BI.

Getting started

To learn how to install and use this connector please visit our support page.

Sample report

A Power BI report template has been included with each release. After installing the connector you can download and open this report in Power BI desktop. You will be prompted to enter an API key which you can generate by visiting API Tokens page in SafetyCulture website.

Frequently Asked Questions (FAQ)

What’s the purpose of the “Org Name”?

The “Org Name” helps distinguish between organizations locally. This can be particularly useful if you choose to consume data from multiple SafetyCulture organizations. The “Org Name” information doesn’t get transmitted to our servers and is only stored locally on your machine.

You can label the “Org Name” freely, as long as it's unique.

Can the data be filtered when loading data for the first time?

Yes, the “inspections” and “inspection_items” data sets can be filtered using the provided functions of “GetInspections” and “GetInspectionItems”, respectively.

What are some best practices to follow when loading data using this connector?

We have a sample report provided which includes a few common use cases of the data present. The report can be found here

Some tables have no data in them i.e. schedules, schedule_assignees, groups and group_users. Is this expected?

schedule_assignees may be a result of that organisation not having any schedules. groups, group_users and users will require the Group Management and User Management permissions in order to load. Please refer to the following support page for more information.

Why do I see tables with no records, such as “schedule_assignee” and “groups”?

This can result from the data simply not existing or that you don’t have the right permission. For example:

An empty “schedule_assignees” table could mean that the organization doesn’t actually have any schedules created. Learn how to create inspection schedules.

Empty “groups” and “users” tables could mean that you don’t have the “Group Management” and “User Management” permissions in the organization. Learn how to assign permissions as an administrator.

Development

Development requirements

  • Microsoft Windows
  • Microsoft Power BI Desktop
  • Microsoft Visual Studio Code
  • Power Query SDK

Development references

Testing locally

  • Open the project in Visual Studio Code (Windows).
  • In PowerShell Admin:
    • Set-ExecutionPolicy RemoteSigned
    • del .\build\
    • del .\MakePQX_Release\
    • Build the project (execute \build.ps1).
  • Copy bin\AnyCPU\Debug\SafetyCulture-Power-Query-Connector.mez into [My Documents]\Power BI Desktop\Custom Connectors directory.
  • Enable the Custom data connectors preview feature in Power BI Desktop (under File > Options and settings > Custom data connectors).
  • Open Power BI Desktop.
  • Make sure you enable Allow any extensions in the security options of Power BI.
  • Select Get Data > More to bring up the Get Data dialog.
  • Search for SafetyCulture

Connector signing

In Power BI, the loading of custom connectors is limited by your choice of security setting. As a general rule, when the security for loading custom connectors is set to 'Recommended', the custom connectors won't load at all, and you have to lower it to make them load. The exception to this is trusted, signed connectors. To sign the connector follow the steps here.

Creating a new release

To release a new version you just need to push a new tag and GitHub Actions will do the rest.

  1. Checkout the master branch and pull the latest changes. If you don't you'll tag the wrong commit for release.
  2. Create your tag, make sure it follows correct versioning and increments on the latest release git tag -a v1.0 -m "Initial Public Release".
    Acceptable version formats include v1.0 and v1.0-beta2.
  3. Push your tag to GitHub using git push origin v1.0.
  4. Wait for Github Actions to finish its work.
  5. Update the release draft and publish it.

safetyculture-power-query-connector's People

Contributors

atashbahar avatar atexatewologun avatar bcook98 avatar dixondeng avatar eddabrahamsen avatar harrytranau avatar hkf57 avatar mickstanciu avatar phanikumarpatchigolla avatar roronoaboi avatar sc-gv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

safetyculture-power-query-connector's Issues

PowerBI report template - 'some data sources may not be listed because of hand authored queries'

This error message indicates that automatic refreshes will not work when uploaded to powerbi online. Explained in this MS doc https://learn.microsoft.com/en-us/power-bi/connect-data/refresh-data#refresh-and-dynamic-data-sources

Steps to reproduce:
-install latest connector
-download latest safety culture report template
-open template & load safety culture data
-transform data -> open data source settings - error shown: 'some data sources may not be listed because of hand authored queries'

Upgraded gateways cannot refresh with iAuditor Connector ( 3000.194.16 )

Hey all;

Our PowerBi Gateways have just been upgraded to version 3000.194.16 - which broke our iAuditor connector then. It was an old version from 2022-04 so a good opportunity to upgrade everything. At the same time, I noticed the regedit had not been performed - so I completed that on both servers - I managed to get a refresh occuring for all our PowerBi reports that source from iAuditor.

This morning I have been met with errors from every single one of our iAuditor PowerBi reports and cannot refresh them at all.

2 Gateways, both running 3000.194.16 and 1.23 iAuditor connector file with regedit.

Does anyone have any insight into the 3000.194.16 gateway clashing with the iAuditor connector?

Local refresh occurs fine on these PowerBi reports.

Power BI Service - how to set it up?

hi all,

The Power BI template works fine on Desktop, but when publishing to the Power BI Service, I'm not able to get it to work. On one hand there are messages saying dynamic sources aren't supported, and on the other hand I think something needs to be done on the Power BI Gateway.

Does anyone know if it can be done to use the Power BI Service to refresh the report? And if so, how to do it?

Sorry if this is not the right place to raise this, but I do not know where else to get technical support.

Many thanks
Bart

Incremental refresh

Hi there,

My organisation uses SafetyCulture and I am trying to setup a report in Power BI to summarise some data. The inspection template I am interested in has 320,000+ inspections. When I use the connector it takes hours to pull this data in. I was hoping I could set up incremental refresh but in order to do so the data source query needs to support query folding. Is there any answer to whether incremental refresh can be setup with the Connector or is there any other way I can schedule refreshes without pulling all data but still seeing archived records?

Sorry if this is not the right place to raise this, but I do not know where else to get technical support.

Thank you,
Josh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.