- Print
- DarkLight
Data Preview
- Print
- DarkLight
In this article, we'll guide you through the process of improving data quality using Preview.
What is Data Preview and how does it benefit?
With Data Preview you can validate data quality faster with streaming data previews which return an initial result set quickly while continuing to process the full preview.
Understand the progress of your preview with a % complete indication, enabling you to decide between using the initial preview results or waiting for the full preview results to become available.
Avoid waiting for long-running previews to complete by now having the ability to cancel previews once the initial result set is available.
Validate data quality iteratively with incremental loading of results.
Accessing Preview
Initiating the Preview Workflow
To begin ensure you are viewing the Draft version:
![image(47).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(47).png)
Step 1: Start the preview workflow by selecting the port of an operator. This action triggers the preview configuration.
![image(49).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1722983923107.png)
![image(48).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(48).png)
Configuring the Preview
Step 2: Start by Configuring Preview Filters to improve preview performance times by filtering out unnecessary data.
After selecting “Configure Preview” choose between two options to run the preview: Date Range or Number of Records.
1. Date Range: Process records within a specified date range based on the timestamp of the data from the source
2. Number of Records: The Preview will run until the port selected has processed the number of records configured.
![image(52).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(52).png)
![image(53).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(53).png)
If choosing the date range option, select a start and end date range.
Note: Be aware of the time zone selected. It's possible to pick a personal time zone, UTC, or other time zones configured in the environment.
![image(54).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(54).png)
Step 3: Configure a timeout in terms of number of seconds. If the data doesn't process within the selected date range, it will stop after the timeout period.
Step 4: Once ready, select Preview Data to preview results.
![image(55).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(55).png)
Streaming Preview Results
Preview results will load iteratively and are available to view even before the preview is complete.
The initial set of results will load automatically. This step is quick and offers an early glimpse into the data.
![image(67).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(67).png)
NOTE:
Timestamps are in the user's selected time zone.
You can always "Update Results" as the preview progresses to get the most up to date view of the Preview results.
![image(68).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(68).png)
Once the final preview is complete, a preview complete status will be displayed. You can choose to "Update Results" to view the completed preview results.
![image(71).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(71).png)
Re-Accessing Preview Results
It's possible to access existing preview results after exiting the preview.
Reopen the preview by choosing a port that has a preview result set available. Look for the screen indication.
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720595279708.png)
Initiating a New Preview
To rerun a preview or initiate a new preview, choose "Reset Preview".
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720595378163.png)
Canceling a Preview
Stop a running preview whenever needed. Choose the "Cancel" option. This action keeps all visible results and any processed data since the last table update.
![image(69).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(69).png)
Preview Results
The preview result set offers several options to manipulate and filter preview results in a table format.
Preview Result Total: The number of “Records Processed” are available as part of the result header. This count is specific to each individual operator in the preview path and based on when results were last updated.
![image(72).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(72).png)
Preview Column Statistics: To quickly identify columns with potential data issues, each column includes statistics including % NULL and, for continuous data fields, MIN and MAX values. You can easily find occurrences of each by selecting the chip, and scrolling forward or backward to the next instance.
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720596130615.png)
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720596141066.png)
NOTE:
Preview statistics are based on the result set after filters are applied and re-run as filters are updated.
Column Sort: Once the preview is complete or ha been canceled, you can sort individual columns by selecting the column name. The first selection will sort in decending order. Selecting the column again will sort in ascending order. Selecting the column a third time will remove the sort.
![image(75).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(75).png)
NOTE:
Sort is only available once the preview is complete or has been canceled. Additionally, when the sort is run, all of the available data will be retrieved, updating the column statistic.
Expand Preview Panel Height: To expand or reduce the height of the preview table, drag the table and it will resize vertically.
![image(73).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(73).png)
Adjust Selected Columns: You can adjust the visible columns by either adding/ removing columns or re-ordering.
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720596245080.png)
Full-Page Preview Results: You can open preview results in a new tab.
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720596258298.png)
Download Results: Download the preview results to a CSV file.
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720596269121.png)
Filter Column Results
Timestamp Instant Type: Timestamp Instants can be filtered by selecting either absolute or relative time ranges.
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720596325536.png)
Strings: Strings can be filtered with several operators including null comparisons.
![](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image-1720596349876.png)
Preview Filters
In this guide, we'll walk you through improving preview performance times by filtering out unnecessary data. This is particularly useful when dealing with large volumes of data.
Step 1: Initiate your preview by selecting the preview icon or directly selecting the operator port.
![image(56).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(56).png)
Step 2: Instead of processing all the data and then filtering out the unnecessary records, filter out the data before the preview data is returned by adding a preview filter.
![image(57).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(57).png)
Step 3: Configure your preview filter using the same syntax as the "Apply Filter by Expression" syntax. In this example, we're removing records where the AnCommOneShot_OB is greater than 0.
![image(60).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(60).png)
Step 4: Select Apply to save your Preview Filter.
![image(61).png](http://cdn.us.document360.io/c65001f1-30e3-4f1d-b335-57abf64ebd31/Images/Documentation/image(61).png)
Step 5: Run your preview.