Database Dashboard Set Up
Database Dashboards let you turn TRIFFT's raw data (users, transactions, coupons, wallets, and more) into visual reports you can monitor over time - without needing SQL or a separate BI tool. A dashboard is built from one or more Questions, each of which queries a specific data object (e.g., Transactions, Users) and lets you filter, summarize, and group the results into a chart or table.
The typical workflow is:
- Create a dashboard (a container for your reports).
- Add one or more Questions to it - either reuse existing ones or build new ones by choosing a data object, applying filters, and summarizing/grouping the data.
- Adjust each Question's chart type and display settings.
- Save and arrange your Questions on the dashboard.
This article walks through both steps - creating a dashboard and building Questions for the most common use cases (new user registrations, transaction totals, coupon activity, wallet balances, and more).
To create a Dashboard, you need an account with access to the "Analytics" tab. By default, two people in each company have this access. If you don't have it, please contact us, and we'll check who currently has access.
Create a new Dashboard
To create a new Dashboard, go to Content Cockpit > Analytics > +New > Dashboard
Enter the Name (required), Description (optional), choose where you want to save it, and click Create.
Now you are in edit mode:
Available edit options:
- Name
- Add Tab, Duplicate Tab, Rename Tab, Delete Tab
- Add questions (you can use previously created or create a new one)
- Add heading or text
- Add a link or iframe
- Add section
- Add filter or parameter (Date picker, Time grouping, Location, Text or Category, Number, Boolean, ID)
- Add action button
- Toggle width (Full width)
Example of Dashboard view with Questions added:
Publishing the Dashboard
1. Configure the Vendor ID Filter
In dashboard edit mode, add a filter with the following settings:
| Setting | Value |
|---|---|
| Label | vendor_id |
| Filter or parameter type | ID |
| Filter operator | Text ID |
| Filter widget | Dropdown list |
| People can pick | A single value |
| Default value | No default |
| Always require a value | Off |
Map the filter to Users.Vendor ID on every card that displays vendor-specific data, then save the dashboard. Keep vendor IDs out of individual question queries.

Setting the Vendor ID
Important note!Never add a Vendor ID filter directly to an individual Metabase question or its query.
Configure vendor_id only at the dashboard level and map it to the Vendor ID field on each relevant card.
2. Publish the Embed
-
Open Share → Embed.

-
Select Guest and enable Allow downloads.
-
Set
vendor_idto Locked. -
Click Publish in the top-right corner.

-
Open the embedded dashboard and verify that it shows only the intended vendor’s data and that viewers cannot change the vendor filter.
-
Contact Trifft Support to Publish your Dashboard.
Questions use cases:
To create a Questions go to Analytics > Databases > Production
From there you can choose multiple options as below:
- Contest
- Coupon Code
- Coupons
- Pending Transaction
- Promo Event
- Promo Event Code
- Push Notifications
- Reward Redeemed
- Rewards
- Survey
- Survey Answer Option
- Survey Node
- Survey User Answer
- Transactions
- User Contest Token
- User Coupon
- Users
- User Survey Token
- Venue
- Wallets
- Wallet Transaction
Users registrations (New users):
To create a Questions go to Analytics > Databases > Production > Users
Apply filters like for example: 1 "Is Active = True" + 2 "Is Verified = True". Active filters are shown
here 3 and can be removed by clicking x
Click 1 Summarize and choose in Summarize by: 2 "Count", in Group by 3 "Created At"(here you can choose to group it by: Minute, Hour, Day, Week, Month, Quarter, Year)
When you choose your "Group by" you will get a preview of the data on a chart. From here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Total number of users:
To create a Questions go to Analytics > Databases > Production > Users
You can apply filter 1 "Is Verified = True" (this will show only verified users)
Click 2 Summarize and choose in Summarize by: 3 "Count", and 4 Done
Average value of transactions (per month):
To create a Questions go to Analytics > Databases > Production > Transactions
Click 1 Summarize and choose in Summarize by: 2 "Average of Amount", in Group by 3 "Performed At"(here you can choose to group it by: Minute, Hour, Day, Week, Month, Quarter, Year)
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Number of transactions:
To create a Questions go to Analytics > Databases > Production > Transactions
Click 1 Summarize and choose in Summarize by: 2 "Count", in Group by 3 "Performed At"(here you can choose to group it by: Minute, Hour, Day, Week, Month, Quarter, Year)
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Transactions by locations:
To create a Questions go to Analytics > Databases > Production > Transactions
Click 1 Summarize and choose in Summarize by: 2 "Count", in Group by: 3 "Venue"
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Frequency by number of purchases:
To create a Questions go to Analytics > Databases > Production > Transactions
Click 1 Summarize and choose in Summarize by: 2 "Count", in Group by 3 "Count"
The EDITOR preview will look like this:
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Total Value of Transactions where Amount is greater than 0:
To create a Questions go to Analytics > Databases > Production > Transactions
Use filter: 1 "Amount = Is greater than 0" Click 2 Summarize and choose in Summarize by: 3 "Sum of Amount"
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
All activated coupons:
To create a Questions go to Analytics > Databases > Production > User coupon
Use filter: 1 "Is Activated = True" Click 2 Summarize and choose in Summarize by: 3 "Count", in Group by 4 "COUPON -> Name"
The EDITOR preview will look like this:
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
All redeemed coupons:
To create a Questions go to Analytics > Databases > Production > User coupon
Use filter: 1 "Is Redeemed = True" Click 2 Summarize and choose in Summarize by: 3 "Count", in Group by 4 "COUPON -> Name"
The EDITOR preview will look like this:
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Coupons redeemed by venue:
To create a Questions go to Analytics > Databases > Production > User coupon
Use filter: 1 "Is Redeemed = True" 2 "Redeem Venue -> Name = Enter the Venue(name or ID) you are interested in"
Click 3 Summarize and choose in Summarize by: 4 "Count", in Group by 5 "COUPON -> Name"
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Average Wallets Balance:
To create a Questions go to Analytics > Databases > Production > Wallets
Use filter: 1 "Points = greater than 0" Click 2 Summarize and choose in Summarize by: 3 "Average of Points"
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Points earned/burned:
To create a Questions go to Analytics > Databases > Production > Wallet Transaction
Click 1 Summarize and choose in Summarize by: 2 "Sum of Points", in Group by 3 "Type"&"Created At" (here you can choose to group it by: Minute, Hour, Day, Week, Month, Quarter, Year)
Here you can adjust visual and display settings:
1 - change chart to table2 - select a chart type (Visualization)3 - by clicking the cog ⚙️ you enter the: Data, Display, Axes options
Once done, click Save in the top-right corner.
Coupon Redemption Rate
Create a table question in Analytics to show what percentage of assigned coupons have been redeemed, then add it to a dashboard.
Redemption rate = Redeemed ÷ Assigned × 100
Prerequisites
Firstly, create a simple Coupons Assigned, Coupons Redeemed, and Coupons Still Active questions and save them to your personal collection. Each must contain a coupon identifier and its count, with one row per coupon.
Use the same project and compatible filters across all source questions. To measure the percentage of assigned coupons that were redeemed, both counts must refer to the same coupon population. Filtering assignments and redemptions independently by event date can produce a different metric.
1. Create the question and join the data
- Create a new Question and select Coupons Assigned as the source.
- Select Join data and add Coupons Redeemed.
- Join the sources using Coupon ID on both sides.
- Use a Left outer join to retain assigned coupons even when they have no redemptions.
- Add Coupons Still Active with another Left outer join, again matching its coupon identifier to Coupons Assigned → Coupon ID.
| Source | Purpose |
|---|---|
| Coupons Assigned | Total assigned copies; the denominator. |
| Coupons Redeemed | Redeemed copies; the numerator. |
| Coupons Still Active | Additional context in the table; not part of the calculation. |
2. Add the custom column
Select Custom column, name it Redemption rate, and enter:
case(
[Count] > 0,
coalesce([Coupons redeemed - Coupon → Count], 0) / [Count],
0
)In this example, [Count] is the count from Coupons Assigned, and [Coupons redeemed - Coupon → Count] is the joined redeemed count.
Column names depend on your source questions and join aliases. Select the fields from the expression editor's suggestions rather than typing an assumed name. If you see Unknown column, replace that reference with the actual field.
The formula treats missing redeemed counts as 0 and returns 0 when the assigned count is zero. Save the custom column.
3. Format the table
- Click Visualize and select Table.
- Keep the coupon identifier/name, assigned count, redeemed count, still-active count, and Redemption rate. Rename the count columns for clarity and hide duplicate identifiers.
- Open the Redemption rate column settings and apply:
| Setting | Value |
|---|---|
| Style | Normal |
| Number of decimal places | 2 |
| Multiply by a number | 100 |
| Add a suffix | % |
The formula returns a ratio:
0.25means 25.00%. Apply multiplication only in the display settings; do not also multiply by 100 in the formula.
4. Save and add to the dashboard
Save the question as Coupon Redemption Rate, add it to the required dashboard, and save the dashboard changes.
Result: Each coupon has its own redemption rate. For example, 25 redeemed copies out of 100 assigned copies = 25.00%.
Updated 7 days ago
