You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/capacity-tariff.md
+61-10Lines changed: 61 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,23 @@ select
6
6
pct_change as pct_change_pct1,
7
7
month_name,
8
8
month_name_short,
9
+
year,
9
10
month_peak_12month_avg as month_peak_12month_avg_kwh3,
10
11
month_start_date,
11
12
month_peak_timestamp as month_peak_timestamp_hm,
12
13
month_peak_timestamp_end as month_peak_timestamp_end_hm,
13
14
month_peak_timestamp as month_peak_timestamp_days,
14
15
month_peak_is_holiday,
15
-
month_peak_day_type
16
+
month_peak_day_type,
17
+
month_peak_part_of_day
16
18
from mrt_capacity_tariff
17
19
```
18
20
21
+
## Overview
22
+
19
23
The capacity tariff is based on the 12-month rolling average of your monthly peak consumption. The higher your peak consumption, the higher your capacity tariff.
20
24
21
-
<Chartdata={mrt_capacity_tariff}x=month_start_datetitle="Month peak value evolution"yAxisTitle="peak"xAxisTitle="month">
The current (<Valuedata={mrt_capacity_tariff_last_months}column=month_name_short/>) monthly peak is **<Valuedata={mrt_capacity_tariff_last_months}column=month_peak_value_kwh3/>**.
35
-
This peak occured between <Valuedata={mrt_capacity_tariff_last_months}column=month_peak_timestamp_hm/> and <Valuedata={mrt_capacity_tariff_last_months}column=month_peak_timestamp_end_hm/> on <Valuedata={mrt_capacity_tariff_last_months}column=month_peak_timestamp_days />, a {mrt_capacity_tariff_last_months[0].month_peak_is_holiday ? "holiday" : mrt_capacity_tariff_last_months[0].month_peak_day_type}.
💸 This is the actual value used to calculate your capacity tariff.
70
+
71
+
## History
72
+
73
+
```mrt_capacity_tariff_part_of_day
74
+
select
75
+
month_peak_part_of_day,
76
+
count(*) as count
77
+
from ${mrt_capacity_tariff_last_months}
78
+
group by month_peak_part_of_day
79
+
order by count desc
80
+
```
36
81
37
-
The change over last month (<Valuedata={mrt_capacity_tariff_last_months}column=month_name_shortrow=1/>) is **<Valuedata={mrt_capacity_tariff_last_months}column=pct_change_pct1/>** {mrt_capacity_tariff_last_months[0].pct_change_pct1 > 0 ? "🙁" : "😃"} as we then had <Valuedata={mrt_capacity_tariff_last_months}column=month_peak_value_kwh3row=1/>.
38
-
This peak occured between <Valuedata={mrt_capacity_tariff_last_months}column=month_peak_timestamp_hmrow=1/> and <Valuedata={mrt_capacity_tariff_last_months}column=month_peak_timestamp_end_hmrow=1/> on <Valuedata={mrt_capacity_tariff_last_months}column=month_peak_timestamp_daysrow=1/>, a {mrt_capacity_tariff_last_months[1].month_peak_is_holiday ? "holiday" : mrt_capacity_tariff_last_months[1].month_peak_day_type}.
82
+
In the past 12 months, most of the peaks occured during the **<Valuedata={mrt_capacity_tariff_part_of_day}column=month_peak_part_of_day />**.
39
83
40
-
The average monthly peak for the last 12 months is **<Valuedata={mrt_capacity_tariff_last_months}column=month_peak_12month_avg_kwh3/>**.
84
+
<BarChart
85
+
data={mrt_capacity_tariff_part_of_day}
86
+
x=month_peak_part_of_day
87
+
y=count
88
+
swapXY=true
89
+
/>
41
90
42
-
Here are the monthly peaks for the last 6 months:
91
+
Here are the monthly peaks for the past 12 months:
43
92
44
93
{#each mrt_capacity_tariff_last_months as month_row}
***{month_row.month_name} {month_row.year}**: <Valuedata={month_row}column=month_peak_value_kwh3 /> on <Valuedata={month_row}column=month_peak_timestamp_days /> between <Valuedata={month_row}column=month_peak_timestamp_hm /> and <Valuedata={month_row}column=month_peak_timestamp_end_hm />
0 commit comments