Coder Social home page Coder Social logo

pbiautomatedchecks's Introduction

PBI Automated Checks

This Power BI external tool runs automated checks on a report and generates a list of exceptions to warn you of potential problems.
PBIAutomatedChecks

The checks currently supported are:

  1. Page Structure

    1. Have filters been applied and forgotten in the report, page or visuals?
    2. Are the page sizes default, or have they been changed?
    3. Is the report landing page the first page? (first page user sees)
  2. Data - these are 100% flexible and can be built with DAX Studio. Examples:

    1. Check the row count of tables you know shouldn’t change (e.g. Calendar table);
    2. Look for specific figures you’re expecting (e.g. max date, sum of sales for FY19/20, etc);
    3. Define % variance criteria and flag outliers (e.g. forecast is up 10% from last month, needs investigation);
    4. Compare data source figures vs Power BI figures to check if any discrepancies were introduced during data processing;
    5. Any other applicable to your specific report!

Requirements

To run the "Page Structure" checks you'll need Admin rights to the machine to install the tool.

To run the "Data" checks you'll need Global Administrator/Application Administrator role in Azure AD and Power BI Admin role to setup a Service Principal (detailed instructions coming soon). If you don't want, or are unable to set this up, you can disable these checks. You will also need a Power BI Pro Account to run these "Data" checks.

Install

  1. Launch PowerShell as an Administrator

  1. Copy/paste the following command and press enter:
Invoke-Expression -Command (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/flavio-meneses/PBIAutomatedChecks/main/Install.ps1" | Select-Object -ExpandProperty Content)

This will download the required files to your "Downloads" folder and install them on your machine.

After installation, the tool will be visible when you open the "External Tools" ribbon in Power BI Desktop. If you had Power BI open during installation please restart it.

Configure checks

  1. Navigate to "C:\PowerBI_AutomatedChecks"
  2. Open the "Settings.json" file and replace the placeholders with the variables required. Please make sure to include double backslashes \\ for any file or folder paths;
  3. If you're not running the "Data" checks you can ignore the "systemSettings" and should make the propery "runDAXtest" 0 for each of the reports;
  4. If you are running the "Data" checks, go to each of the "Tests" folder and update the "DAXTests.dax" file with the Data checks you want for that report.

Use tool

  1. In Power BI, go to the "External tools" menu and click the "Automated Checks" button. This will run the checks and generate an automated report that will be saved to your desktop.
  2. If there's a check you don't want to run, you can go to the "Tests" folder for that report and add it to the "IgnoreTests.json" file. For example:
[
  {
    "Check Type": "File Structure",
    "Check Name": "Page dimensions for page 'Page 1'"
  },
  {
    "Check Type": "File Structure",
    "Check Name": "Report landing page is first page"
  }
]

pbiautomatedchecks's People

Contributors

flavio-meneses avatar

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.