Creating a New Data Set
This section provides a detailed, step-by-step guide to creating a Data Set and explaining its related functions.
Data Set Creation using an RDBMS Connector
Use the RDBMS Data Connector to author reusable, database-native queries as Data Sets for Widgets, Dashboards, DS Lab, Data as API, and more.
Steps
Navigation path: Data Center → My Connectors → Standard Connectors.
Select an RDBMS data connector from the list.
Click the Options (
) icon.
Select Create Data Set from the context menu.
Configure the Data Set
Service Name: Enter a user-defined name for the data set.
Description: Provide a brief description (optional).
Data Connector Name: Pre-filled based on the selected connector.
Database Name: Pre-filled from the connector.
Query: Write a valid query service in the editor. (Use Ctrl+Space for query assistance.)
Table Information: The right panel lists tables and columns from the database. Double-click a table or column to auto-generate a sample query for quick validation.
Validate, Preview, Protect, Save
Click Validate to execute the new Data Set.
A notification confirms successful execution.
The Preview is displayed at the bottom of the page.
Open the Data Protection Rule drawer by using the Ellipsis (
)icon next to a column in the preview.
Click Save.
A notification confirms completion.
The new Data Set is added to the Data Sets List.
Applying Dynamic Filter in an RDBMS Data Set
Add dynamic runtime filters directly inside the query.
Open the Data Set form for any RDBMS connector.
In Query, insert the filter using the
@text@
syntax.Example (pattern):
... WHERE country = @country@ AND year >= @fromYear@
Click Validate.
A Filter List dialog appears, requesting values for each
@...@
.
Enter filter value(s) and click Continue.
A notification appears; filtered Preview is shown at the bottom.
Click Save to save the Data Set form.
A notification confirms creation.
The Data Set is saved with the filter configuration in the Data Sets list.
Add Data Protection Rules
Prerequisites:
You have a Data Set open (e.g., Data Center → Data Sets → Edit).
Your query validates and returns a preview.
You can access the Data Protection Rule drawer by clicking the Ellipsis icon provided next to a column in the Preview.
Steps to Add a Data Protection Rule
Open the Data Set
Go to Data Center → Data Sets and Edit/View the target Data Set.
(Optional) Click Validate to load the Preview grid.
Open Data Protection
In the Data Set form, open the DATA PROTECTION section and click Add Rule → The Data Protection Rule dialog opens (as shown in the image).
Choose the target column
Column Name: pick the column to protect (e.g.,
Commission
).
Select the rule type
Select Rule Type: choose one of the following:
Redaction – hide characters fully or partially.
Masking – replace characters with a mask character.
Hashing – irreversibly hash the value.
Date Generalization – reduce date precision (Year/Month/Quarter/Week).
Configure rule options (based on type)
Redaction
Select Redaction Type: Full or Partial.
For Partial, set Start and Length (the redacted segment).
Masking
Set Start and Length; choose the Masking character.
Hashing
Choose the algorithm: SHA-25, SHA-384, or SHA-512
Date Generalization
Choose the unit: Year, Month, Quarter, or Week.
Save the rule
Click Save in the Data Protection Rule dialog.
The rule is added to the Data Set’s protection rules list.
Example:
Column Name:
Commission
Select Rule Type:
Redaction
Select Redaction Type:
Partial
Start: (set start position)
Length:
2
Save → values in
Commission
show partial redaction in Preview.
Restricting Displayed Data for End Users via a Data Set
Control which data dashboard end-users can see using Data Service (Data Set)–driven restriction.
Prerequisite:
Data Restriction through Data Service is interconnected with multiple platform plugins. Users should have a good understanding of the involved BDB Platform modules and the Dashboard Designer plugin.
End-to-end flow
Create a Custom Field in the Configurations admin section.
Create a Data Set using the ENV with the selected Custom Field Key.
Create a Dashboard that uses this Data Set.
Publish the Dashboard to the portal.
Create a new user (Security module) and pass the Custom Field Value (or update an existing user with the value).
Share the Dashboard with the same Platform user using the Share with User option.
From the updated user’s account, open the shared dashboard.
Troubleshooting
Validate fails: Check connection, schema/table names, or syntax; use Table Information to auto-generate a sample and iterate.
No Preview data: Ensure the query returns rows; remove or adjust filters; confirm filter values entered in Filter List.
Publish not visible: Look for the Publish icon state; ensure you have the rights to publish.
Share restrictions not applied: Verify Custom Field Key/Value mapping and that the user account is updated correctly.
Use Assist to Write or Modify a Data Set Query
Assist helps you generate or refine SQL for a Data Set directly from the Query editor.
Prerequisites:
You are in Data Center → Data Sets → Create / Update.
A Data Connector and Database Name are already selected.
In the Query editor, locate the Assist launcher at the top-right of the editor (highlighted in the image).
Click the launcher.
An inline Assist bar appears above the editor with the placeholder “Generate Query” and two controls:
Run (
) – submit your request.
Close (
) – dismiss Assist.
Generate a new query (natural language → SQL)
The Assist support inside a query builder allows the user to create an SQL query based on their instructions in natural language.
In the Assist bar, describe what you want in plain language. Examples:
“Select the top 10 branches by total sales in the last 30 days.”
“List customer_id, day_name, commission where day_name = @dayName@.”
Click the Run (
) icon.
The Assist drafts an SQL statement and displays it with Accept and Reject options.
Once accepted, the query will be inserted into the Query editor (it can replace or append, depending on context).
Review the SQL; adjust if needed.
Click Validate.
Provide a name and save the data set after successful validation.
Modify an existing query
With your current SQL in the Query editor, open Assist.
In the Assist bar, specify the change you want. Examples:
“Add a WHERE filter for day_name = @dayName@.”
“Aggregate by branch_id and include SUM(commission) as total_commission.”
“Convert to parameterized query with @fromDate@ and @toDate@.”
Click Run.
Assist will display the updated query with the Accept and Reject options.
Accept to bring the updated query to the query builder space.
Validate and save
Click Validate to execute and view the Preview.
If the results are correct, click Save.
Creating a Data Set using an API Connector
Use this flow to build a Data Set from an API Connector (for example, Google Analytics). The fields presented on the form may vary by API type.
Prerequisites:
An API Connector is already created and authenticated (e.g., via OpenID Settings) and visible on the Data Source list.
You have Data Center access and permission to create Data Sets.
Steps
Open the Data Set wizard
From the Data Center homepage, click the New menu.
Select Data Set from the context menu. Result: The Data Source page opens, listing all data connectors.
Locate your API Connector
Use the Data Source filter or the Search Data Connectors bar to find the connector by name or type.
Select the required Data Source tile.
Click the Create Data Set icon (+) on that tile.
Complete the API-specific form (Example: Google Analytics Dataset form) Fill in the following information:
Dataset Name — Enter any user-defined name for the new dataset.
Description — Provide a brief description (optional).
Data Connector Name — Pre-defined based on the selected connector.
Report Selection
Select Report Type — Choose a report type from the drop-down.
(If applicable) Select Sub-report Type — Appears when the selected report type has sub-types.
Columns — Select required columns using the checkmarks next to each field.
Preview the data
Click Preview data. Result: The Data Preview renders below the form.
Save the Data Set
Once the preview succeeds, the Save option is enabled.
Click Save.
Troubleshooting
No columns listed / form options missing: Confirm you selected the correct Report Type (and Sub-report Type, if required).
Preview fails: Re-check connector authentication, API permissions/scopes, and any required parameters (date ranges, account IDs, etc.).
Save disabled: Run Preview data first; Save is enabled only after a successful preview.
Connector not found: Use the Search Data Connectors bar and verify the connector exists and is accessible to your role.
Last updated