How to Count Tags and Display the Percentage?

What I’m trying to do

Hiii, I need some help. I’m new to using Obsidian and still unfamiliar with creating tables using Dataview. What I’m trying to achieve is to count how many notes are tagged with #True and #False, then find the percentage of #True values. Like the table below. It doesn’t have to be exactly like the table below, but what’s important is being able to display how many tags are true and false, then the total count of both tags, and the percentage of true tags.

8 2 10 80

Please help me, I’ve been searching all day for a way to solve this but still haven’t found one.

Things I have tried

I’ve attempted it and got results like the ones below.


TABLE length(rows) as Amount
FROM "Folder1"
WHERE file.etags
FLATTEN  file.etags as T
GROUP BY T as "Tags"

I really appreciate your help :slight_smile: