I’m using Obsidian to organize my podcast and without going into too many needless details, I have a note for video game characters to show what episodes exist with those characters broken down by various categories that are defined in the YAML frontmatter and Dataviewjs to make groups of tables for those categories.
One of those categories is “Also Has Games With” and I can get that list and grouping to populate correctly except for the part where I also have a group for the subject of the current note.
Let’s take a look at this example, which I pulled off of the Batman note.
Question: Is playablecharacters always a list or is it sometimes just a string?
Anyway, I think you can do the filtering you want just inside your for loop at the bottom: if (group.key === dv.current().file.name) continue;
right before making a header out of group.key continue basically skips the rest of the the for loop for the current value of group and goes on to the next one.