> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usedatabrain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Metric

> Metrics offer detailed insights and visualization of your data within a dashboard. This guide provides a step-by-step process to create a Metric in Databrain.

> **What is a Metric in Databrain?**\
> A metric is a configurable analytical component that enables you to visualize and analyze your data through various chart types. It serves as a building block for dashboards, allowing you to create comprehensive data visualizations by combining multiple metrics.

<Steps>
  <Step title="Navigate to Dashboard and Initiate Metric Creation">
    * Select the dashboard where you intend to add the metric.
    * For the first metric, click the "+ Metric" button.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/3OVuv1yincv0D6pa/images/guides/create-metric.png?fit=max&auto=format&n=3OVuv1yincv0D6pa&q=85&s=f455b0e3bc56bf52ea87d8725e14aba5" alt="Create metric button in the dashboard interface" width="2940" height="1656" data-path="images/guides/create-metric.png" />
    </Frame>
  </Step>

  <Step title="Configure Metric Settings">
    * Inside the metric creation page, select the desired table from your database schema.
    * Drag and Drop columns into Dimensions and Measures as required.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/MbLmlD85jcjEoVGY/images/guides/dimensions-measures.png?fit=max&auto=format&n=MbLmlD85jcjEoVGY&q=85&s=4d095cae4e7c25a13023cd5c86d9940c" alt="Dimensions and measures selection interface" width="2940" height="1660" data-path="images/guides/dimensions-measures.png" />
    </Frame>

    * Choose an aggregation method for the Measure: `COUNT ROW`, `AVG`, `SUM`, `COUNT`, `COUNT DISTINCT`, `MAX`, `MIN`, or `Original Value`.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/3OVuv1yincv0D6pa/images/guides/aggregates.png?fit=max&auto=format&n=3OVuv1yincv0D6pa&q=85&s=a97c36dac7ab61edfe37e71b0d6b41f4" alt="Available aggregation functions for metric creation" width="2940" height="1654" data-path="images/guides/aggregates.png" />
    </Frame>

    * Choose a visualization from the Charts icon.
    * Use Joins, Group by, Filters, Sort, and Dynamic Property from the toolbar to enhance your metric.
    * Adjust chart settings via the Settings icon.
    * For chart-specific setup instructions, see [Chart Setup guides](/guides/visualizations-actions-and-appearance/chart-setup/overview).

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/MbLmlD85jcjEoVGY/images/guides/functionalities.png?fit=max&auto=format&n=MbLmlD85jcjEoVGY&q=85&s=4e09769ebffe4e7f0b2d75b4d4a4e013" alt="Toolbar functionalities for metric customization" width="2940" height="1658" data-path="images/guides/functionalities.png" />
    </Frame>

    For a detailed guide on Dynamic Property, refer to the section below:\
    <Link href="https://docs.usedatabrain.com/guides/metric/dynamic-property">Dynamic Property</Link>
  </Step>

  <Step title="Finalize & Save Metric">
    * After creating your metric, you can save it to a dashboard or as a draft.
    * Once satisfied with the chart, click "Save to Dashboard" on the top right.
    * Choose the dashboard where the metric should be stored.
    * Provide a Metric Name, Metric ID, and a brief Description.
    * If needed, add a long description or footnote and toggle the option for end users to archive metrics.
    * Finally, click "Save" to publish the metric to your dashboard.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/oJW5seGO2mMUK4Ch/images/guides/save-to-dashboard.gif?s=ef1616e2f9e01af54d94fb66f851afab" alt="Saving a metric to the dashboard walkthrough" width="1632" height="918" data-path="images/guides/save-to-dashboard.gif" />
    </Frame>

    For more details on long descriptions and footnotes:\
    <Link href="https://docs.usedatabrain.com/guides/metric/footnote-and-long-description">Footnote and Long Description</Link>
  </Step>

  <Step title="Choose Your Preferred Saving Option">
    * Add Metric to Dashboard: Select a dashboard name from the dropdown menu and click "Save" to integrate your metric into the chosen dashboard. Your metric will appear in the selected dashboard!

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/3OVuv1yincv0D6pa/images/guides/added-metric-to-dashboard.png?fit=max&auto=format&n=3OVuv1yincv0D6pa&q=85&s=6d16c725e132f5ef36457de442300640" alt="Metric added to dashboard confirmation view" width="2940" height="1658" data-path="images/guides/added-metric-to-dashboard.png" />
    </Frame>

    * Save Metric as Draft: Leave the dashboard selection empty and click "Save" to create an unpublished metric. Draft metrics can be added to dashboards at a later time.

    <Frame>
      <img src="https://mintcdn.com/databrainlabs-bef6850a/hRxI-z391a3Ay8M5/images/guides/unpublished-metric.png?fit=max&auto=format&n=hRxI-z391a3Ay8M5&q=85&s=f4557e81eb4ad7a6bb02f75ecb422a06" alt="View of unpublished draft metric" width="2938" height="1660" data-path="images/guides/unpublished-metric.png" />
    </Frame>

    For more details on saving a metric as a Draft:

    <Card title="View Unpublished Metrics" href="https://docs.usedatabrain.com/guides/metric/view-unpublished-metrics" />
  </Step>
</Steps>

<Check>
  You’ve successfully created a metric in Databrain!\
  Your new metric is now ready for visualization, analysis, and integration into dashboards.
</Check>
