metabase / metabase/metabase

Ability to use variables in graph titles

Open
#26,946 2 comments 46 reactions 0 assignees View on GitHub
Querying/Parameters & Variables Reporting/Dashboards Type:New Feature Visualization/
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

**Is your feature request related to a problem? Please describe.**
When using time related queries and showing data for "last month", "this month", "next month" on dashboards it would be great to actually be able to put the Month name in the title rather than just "This Month". Sometimes when the month ticks over, some of my user's haven't realised if it happens mid week in regards to the stats changing! Is it possible to allow some sort of custom expression in titles?

**Describe the solution you'd like**
I would like to be able to add some sort of custom expression in the graph title (e.g. {{ = getDate() }} or metabase equivalent.

**Describe alternatives you've considered**
Currently, I am having to use a custom sql select (e.g. select DATENAME(Month, DATEADD(m, -1, getDate())) as Month) and add it as an extra graph when required. This works, but takes up a lot of space as graphs are 3 blocks high.

**How important is this feature to you?**
It doesnt impact the functionality of what we've produced at all, but makes chart context easier to understand and avoids confusion.

**Additional context**
![image](https://user-images.githubusercontent.com/4190823/205597166-856f1432-d03a-4196-87ba-593d784c9d14.png)

:arrow_down: Please click the :+1: reaction instead of leaving a `+1` or `update?` comment

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by tracing how dashboard graph titles are rendered and whether title variables are currently supported; clarify the expression syntax, available date values, and dashboard contexts before implementation. Done means users can insert a month value into a graph title and see it update correctly as time ranges change.

Written by the indexing model from the issue text.

Assessment

Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.