See How Data Engineering Gets Done on Our Do-It-Yourself Data Webcast Series

Start Free

Speed up your data preparation with Trifacta

Free Sign Up
Summer of SQL

A Q&A Series with Joe Hellerstein

See why SQL is Back
 
All Blog Posts

Monitoring Data Quality Trends with Cloud Dataprep and Data Studio

December 17, 2020

Automatic data quality assessment is a Trifacta user favorite. Who wouldn’t want to give their eyes a rest from combing through data while Trifacta automatically points out possible data flaws?

The feature is particularly useful when onboarding or integrating unfamiliar data. With unfamiliar data, it’s not only difficult to tell what errors might be lurking in the data, but it can be tough to tell where to even begin transforming the data. Automatic data quality assessment helps map out the work you need to do before reaching the level of data quality required for your analytics initiative.

Of course, checking for data quality isn’t a one-time occurrence. At every step of the data preparation process, Trifacta offers quality checks and suggests transformations to clean the data. Trifacta’s rich sets of data quality capabilities includes:

Trifacta Profile Results & Quality Rules 

When you run a data preparation job with Trifacta, you can request for “Profile Results” and Trifacta will collect profiling statistics from your transformed dataset and displays it in the job workspace after the job has run.

Fig. 1. Job Profiling Result

Fig. 1. Job Profiling Result

Additionally, when you create Data Quality Rules in your recipe, quality bars are also displayed in the job workplace under the Rules tab.

Fig. 2. Job Data Quality Rules Result

Since Profile and Quality Rules results are collected after each job, many of our users have collected this information via API and created a comprehensive dashboard that monitors data quality over time. Data quality dashboards allow users to track trends in their data and quickly intervene should they see data quality go awry. Users can also customize the dashboard to highlight specific data quality indicators related to their analytic initiatives. 

Data Quality Dashboard with Data Studio

Here is an example of a Data Studio Data Quality dashboard we created to monitor both the profile results and data quality rules over time. Try it out yourself to discover how you can filter out and identify data quality trends.

The first page highlights Data Profiling results. You can select a particular Output Dataset or a particular date to zoom in on a specific piece of information.

Fig. 3. Data Studio dashboard to monitor profiling results over time

The dashboard shows us normal profiling results statistics, while the bottom chart shows summary information for each job run so that you can see the trends for each dataset.

The second page summarizes the Data Quality Rules results. It has richer features.

You can select a particular dataset, a rule type (Valid, Unique, Not Missing, Match, Implies, Greater Than, Formula), a specific rule name, the status of the rule result (passed or failed), or a particular data to focus on.

Fig. 4. Data Studio Data Quality Rules Dashboard with historical trends and score.

The bottom of the dashboard provides a history of each run. We even created a Quality Score (in that case, a ratio of pass records divided by the total number of records). With this quality scoreline, it becomes easy to track trends.

Building Your Own Data Quality Dashboard

What if you could build your own Data Quality Dashboard and automatically refresh it every time you run a Trifacta job? We have it covered for you! Read the step-by-step guide to building the entire, fully-automated solution,  which uses Google Functions and APIs to collect the Dataprep Profile and Rules results, loads them in BigQuery, and gets the Data Studio report ready.

While we created the solution with Data Studio, which is free and feature-rich enough, you may already be familiar with another BI solution such as Tableau, Qlick or Looker. You can also easily connect those solutions to the Profiling and Rules tables stored in BigQuery. These BI solutions may support alerting, so you could also define an alert if a quality score goes under a certain threshold to take immediate action. Sign up for Trifacta today!