inserted heading countries
inserted code block TABLE length(rows) AS "Trips"
FLATTEN filter(tags, (t) => st...
modified code block TABLE join(unique(map(filter(flat(rows.tags), (t) => startsw...
inserted heading cities
inserted code block TABLE length(rows) AS "Trips"
FLATTEN filter(tags, (t) => st...
inserted heading cities by year
inserted code block TABLE join(unique(map(filter(flat(rows.tags), (t) => startsw...
M /anton/undefined +32 -0
1---2title: Trips3---4
5## countries6
7```dataview8TABLE length(rows) AS "Trips"9FLATTEN filter(tags, (t) => startswith(t, "country/")) AS country10WHERE country11GROUP BY replace(country, "country/", "")12SORT length(rows) DESC13```14
15## countries by year16
17```dataview8TABLE length(filter(tags, (t) => startswith(t, "country/"))) AS "Countries", date, purpose WHERE date SORT date DESC GROUP BY dateformat(date, "yyyy")18TABLE join(unique(map(filter(flat(rows.tags), (t) => startswith(t, "country/")), (t) => replace(t, "country/", ""))), ", ") AS "Countries", length(rows) AS "Trips"19WHERE date20SORT date DESC21GROUP BY dateformat(date, "yyyy")22```23
24## cities25
26```dataview27TABLE length(rows) AS "Trips"28FLATTEN filter(tags, (t) => startswith(t, "city/")) AS city29WHERE city30GROUP BY replace(city, "city/", "")31SORT length(rows) DESC32```33
34## cities by year35
36```dataview37TABLE join(unique(map(filter(flat(rows.tags), (t) => startswith(t, "city/")), (t) => replace(t, "city/", ""))), ", ") AS "Cities", length(rows) AS "Trips"38WHERE date39SORT date DESC40GROUP BY dateformat(date, "yyyy")41```