I would like to create a dashboard with month to date (MTD) and year to date (YTD) charts. However, I do not want to update my date range each month. A fixed date range would do this. Choosing 1 months ago
give the last 30days. Using last month
gives me last month and everything from this month. Yet, this month
is not supported. MTD
doesn't work either. I am using Superset version 0.24.0
Asked
Active
Viewed 2,578 times
3

Climbs_lika_Spyder
- 6,004
- 3
- 39
- 53
4 Answers
4
I figured it out! Use 1st
for MTD and Jan 1st
for YTD.
For newer versions of Superset, this quarter
is supported for quarter to date (QTD) charts.

Climbs_lika_Spyder
- 6,004
- 3
- 39
- 53
-
1chaisng on old comment - are you able to elaborate on the solution. Where did you use the `1st` and `Jan 1st`? – CeeVei Jun 19 '20 at 03:59
-
anyone using superset version 1.4? 1st now gives YTD instead of MTD. – Adham Nm Mar 29 '22 at 06:53
0
I think it can be set on the custom tab of the time range in the chart explorer. There you can use 1st and Jan 1st as strings that are parsed.
0
Select Range Type as "Advanced", then enter "1st" for Start Date and leave End Date blank. Image has today's date as End Date but leave it blank to get YTD

pdxrlk
- 258
- 1
- 6