rich-flower-71648
12/19/2022, 7:48 PMbright-smartphone-11251
rich-flower-71648
12/19/2022, 7:50 PMrich-flower-71648
12/19/2022, 7:51 PMbright-smartphone-11251
```my_query
select
date_trunc("month", mydate) as date_mmmyyyy,
date_trunc("year" mydate) as year_yyyy,
sales
from table
<LineChart
data={my_query}
x=date_mmmyyyy
y=sales
series=year_yyyy
/>```bright-smartphone-11251
rich-flower-71648
12/19/2022, 7:55 PMrich-flower-71648
12/19/2022, 7:57 PMbright-smartphone-11251
rich-flower-71648
12/19/2022, 7:58 PMbright-smartphone-11251
bright-smartphone-11251
date_part("month", mydate) as date_mmmyyyy
bright-smartphone-11251
bright-smartphone-11251
bright-smartphone-11251
rich-flower-71648
12/19/2022, 8:01 PMbright-smartphone-11251
bright-smartphone-11251
rich-flower-71648
12/19/2022, 9:07 PMrich-flower-71648
12/19/2022, 9:08 PMrich-flower-71648
12/19/2022, 9:08 PMrich-flower-71648
12/19/2022, 9:09 PMbright-smartphone-11251
rich-flower-71648
12/19/2022, 9:09 PMselect
count (distinct aa.Id) as count_users,
date_part(MONTH, aa.CreatedOn) as joined_mmm,
date_part(YEAR, aa.CreatedOn) as joined_year
...
where joined_year >= date_part(YEAR, dateadd(year, -1, current_date))
group by ---id,
joined_mmm,
joined_year
order by joined_mmm asc
rich-flower-71648
12/19/2022, 9:10 PMbright-smartphone-11251
<LineChart
x=joined_mmm
y=count_users
series=joined_year
/>
rich-flower-71648
12/19/2022, 9:15 PM<LineChart
x=joined_mmm
y=count_users
series=joined_year
/>
bright-smartphone-11251
bright-smartphone-11251
rich-flower-71648
12/19/2022, 9:17 PMrich-flower-71648
12/19/2022, 9:17 PMrich-flower-71648
12/19/2022, 9:17 PMbright-smartphone-11251
date_part("MONTH", aa.CreatedOn)
Does it?bright-smartphone-11251
rich-flower-71648
12/19/2022, 9:18 PMrich-flower-71648
12/19/2022, 9:19 PMbright-smartphone-11251
select
count (distinct aa.Id) as count_users,
date_part(MONTH, aa.CreatedOn) as joined,
date_part(YEAR, aa.CreatedOn) as joined_year
...
where joined_year >= date_part(YEAR, dateadd(year, -1, current_date))
group by ---id,
joined_mmm,
joined_year
order by joined_mmm asc
<LineChart
data={query}
x=joined
y=count_users
series=joined_year
/>
bright-smartphone-11251
bright-smartphone-11251
bright-smartphone-11251
rich-flower-71648
12/19/2022, 9:21 PMbright-smartphone-11251
rich-flower-71648
12/19/2022, 9:21 PMrich-flower-71648
12/19/2022, 9:21 PMbright-smartphone-11251
select
count (distinct aa.Id) as count_users,
date_part(MONTH, aa.CreatedOn) as joined,
MONTHNAME( aa.CreatedOn ) as joined_monthname
date_part(YEAR, aa.CreatedOn) as joined_year
...
where joined_year >= date_part(YEAR, dateadd(year, -1, current_date))
group by ---id,
joined_mmm,
joined_year
order by joined_mmm asc
<LineChart
data={query}
x=joined_monthname
y=count_users
series=joined_year
/>
bright-smartphone-11251
rich-flower-71648
12/19/2022, 9:29 PMrich-flower-71648
12/19/2022, 9:29 PMrich-flower-71648
12/19/2022, 9:29 PM