Dataview table list missing bullet when only one entry

What I’m trying to do

I have a monthly summary for my journal that pulls events from my daily journal entries that have been marked with “events:: test event” minus the quotes.

When the table is generated, the days with multiple events have bullets for each entry. But the days with a single event have no bullet. How do I get bullets to display for these single entry lists? My understanding is I would have to convert it to an array using choice, but not quite sure. Here’s my dataview query:

TABLE WITHOUT ID file.day.weekyear AS Week, events
FROM "Journal/Daily"
WHERE events != null
AND file.day.year = number(substring(this.file.name, 0, 4))
AND dateformat(date(file.name), "yyyy-MM") = replace(this.file.name, "M", "")
SORT file.day

Edit: one other piece of info… I’m using Minimal Theme, which was not showing bullets anywhere by default, but I added the following CSS snippet to get where I am now:

.dataview.table-view-table ul.dataview-result-list-ul {
list-style: disc;
list-style-position: inside;
}

I solved it by changing the first line to this:

TABLE choice(length((events)[0]) = 1, list(events),events) AS Events

You could possibly replace that expression with the shorter flat(list(events)), which will always produce a list of one or multiple events.

1 Like

That’s definitely a more elegant solution. :smile: Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.