Hello there!
I have a lovely table that this helpful forum helped me with a few months ago.
dataviewjs
let pages = dv
.pages(`#Cainita`)
.where(
(page) => !page.file.name.includes("Template")
);
let groups = pages
.groupBy((page) => page.residencia.ciudad)
.groupIn((page) => page.clan);
for (let group of groups){
dv.header(2, group.key);
dv.table(
["Clan", "Cainita", "Generacion", "Status"],
group.rows
.sort((G1) => G1.rows.Clan, "asc")
.map((G1) => [
G1.rows.clan[0],
G1.rows.file.link,
G1.rows.generacion,
G1.rows.status,
])
);
}
This results in a few tables grouped by City, and themselves group by Clans.
But what I wasn’t able to do, is to have rows per file, insted per group.
Something more akin to what you have when you “merge” cells in excell.
Because right now, when a value is missing in a column, the info gets unaligned and is hard to read.
Am I missing some configuration or option? or it’s impossible to do this?
Thanks in advance for any tip or pointing me in some direction!
Examples: