Metrics/KPIs
A metric is a query that has been defined by the business as a key performance indicator (KPI). It is used to measure the performance of the business.
Each time a user asks a question that closely matches a pre-defined metric/KPI a verification badge will be displayed in the app. This gives you the confidence that Qluent is answering inline with your business intentions.
Use case
If your business knows what common metrics it tracks for success, add a short name and the SQL code that answers it. Qluent is smart enough to adapt the given SQL code to different questions therefore it's not necessary to provide all variations. e.g. Query Top campaigns by session
and code
SELECT
campaign_name,
SUM(sessions) AS total_sessions
FROM campaigns
GROUP BY campaign_name
ORDER BY total_sessions DESC