Build a metrics dashboard connected to your Cube data
Lovable connects to your Cube instance and builds charts and cards showing the metrics your team defined.
When to use it
Your team defines key metrics in Cube and you need a dashboard showing monthly revenue, customer count, and churn rate.
Why it is worth it
Your dashboard automatically reflects metric changes your data team makes, with no rebuilding needed.
Paste this into Lovable's chat on a project where you want to build the metrics dashboard.
The prompt
Create a company metrics dashboard with the following layout: a header with the title Metrics Dashboard, then three metric cards in a row showing monthly recurring revenue, active customers, and customer churn rate. Below that, add a line chart displaying monthly recurring revenue for the last 24 months with a date range picker above it. Finally add a table showing our top 15 customers by contract value, with columns for customer name, contract value, and signup date. Connect this dashboard to our Cube instance to pull all data. The monthly recurring revenue measure is mrr_usd, active customers is customer_count, churn is monthly_churn_pct. Dimensions are company_date for dates and customer_name for customer names. When done, show the complete dashboard.
Swap the metric names, Cube instance type, and customer data columns with your company's data.
What you get
A dashboard showing your company metrics from Cube with live charts, cards, and a customer table that update with your data.
From docs.lovable.dev/changelog#connect-your-app-to-cube