Per-Deck toggle to exclude individual decks from global collection Stats

Hi,

I would like to propose adding a simple toggle option for individual decks that would allow users to exclude them from the global Stats page.
I understand that it’s currently possible to view statistics for single decks or by organizing decks into folders. However, my preference is to be able to select for each deck whether or not it contributes to my overall statistics, without needing to change its location in the deck hierarchy or manually filter decks every time I view the stats.
This feature would make the global stats more customizable and relevant for users who have decks they don’t wish to include in their primary progress overview.

Thanks for considering this suggestion.

The search feature already allows excluding specific decks, tags, note types, and so on. See Searching - Anki Manual.

IIRC, search page doesn’t allow setting default/saved searches; that might be a more useful thing to have than an extra UI for excluding only decks.

2 Likes

Thanks, I tried with deck:"deck1" or "deck1" or "..." and it worked!

I agree it’s a better solution, but now the problem is, as you’ve said, to make it the default for stats, instead of showing stats for the current deck selected.
I confirm that there’s no option for saving searches on the Stats page. I could only find the default search for Browsing inside Preferences:

My desire would be to save the last search in this field (image below) to keep it even after closing the window or changing selected decks, but as of now the intended Anki behavior is to show the stats of the current selected deck by default, which also makes sense, so idk… maybe a toggle to let the user choose or a dropdown with the saved searches somewhere else?

A better way: -deck:"deck1"

And sure, I’m asking default behaviour of stats page to be customisable. If you want deck:current, that’s fine too. Others might want something else.

Instead of default search text, saved searches for stats work too. And it’s probably more helpful than my other suggestion.

2 Likes

Oh right, I could simply exclude multiple decks from search with something like this:
-deck:"deck1" OR deck:"deck2" OR deck:"..."

Also, sorry I made a little mistake earlier, I didn’t repeat deck: before each new string so they were threated as simple keywords to search for in cards, I think. Just to clear confusion in case someone else finds this :).

And to include multiple decks I should do something like this:
deck:"deck1" AND deck:"deck2" AND deck:"..."

Anyway, the current text field for making these searches is tiny and doesn’t expand with new text, so I’ll use a text editor. But having a feature where you can create and name specific search filters (like “My core decks”, “Exam prep only”, “Exclude old decks”, etc.) would be so great!

To exclude multiple decks at a time, wrap the entire thing in parentheses and before that entire thing, add a hyphen. Your current search will result in decks which are not in “deck1” or decks which are “deck2”, “…”.

You’re misunderstanding the word AND in this case, AND is equivalent to the mathematical concept of intersection, while OR is equivalent to the mathematical concept of union (like in Logic Gates).

Refer to the manual for this (as already pointed out by sorata).

3 Likes

My bad, I forgot to put the following hyphens after the first one.
I’ll use the parentheses with logic OR to filter out cards in any of those decks, and I don’t think I need logical AND (or just space, as in the manual) in this case since the intersection between decks with all different cards is empty, of course.
Sorry for the confusion and thank you all for the help!

3 Likes