What I’m trying to do
My notes contain the keys: date_A, text_A, date_B, text_B.
In a query I would like to aggregate all dates (both from date_A & date_B) in a single column called date if they are within a given year (this part is solved thanks to Aggregate different keys into one column and sort by this column).
In a column called text I would then like to display the corresponing texts. So if in a certain row the date column entry is coming from date_A, I would like to display text_A in the text column and so on.
Things I have tried
I have the following query:
```dataview
TABLE
date_A,
date_B,
text_A,
text_B,
date,
text
FROM "Testing"
FLATTEN list(date_A, date_B) as date
FLATTEN list(text_A, text_B) as text
WHERE date.year=2023
This, however, due to the two FLATTEN commands includes too many entries, as also “wrong” combinations (indicated by the red strikethrough) are shown. Is there a way to somehow zip the lists or another way to achieve the desired result?


