Henk's suggestion normally works!
Here is an example on Go Sales.
This chart has 12 bars:

Apply a Top filter as such:

shows this:

Performance will be down to the underlying datasource, rather than the dashboard tool itself. In this simple example, if you examine the sql that the database is doing you'll see the Dense Rank function, and then <5, to get the top 4

Someone with some C12 knowledge may be able to comment if Top X functionality is covered in the new dashboard local cache capability.
there is nothing in the c12 docs that say it is/isnt.
https://www.ibm.com/docs/en/cognos-analytics/12.0.0?topic=caching-specifying-data-elements-local
------------------------------
Marc Reed
------------------------------
Original Message:
Sent: Tue November 14, 2023 09:39 AM
From: Adam McIlravey
Subject: Top X for Stacked Bar/Column Chart
Henk...
Thanks for the suggestion
I have previously tried this (putting a Top X filter on Practice Name - Bars) and it appears to do nothing.
Or it is potentially taking way too long to do anything to the point where use in a dashboard would be meaningless.
Another indication that it is doing nothing is that it does not create a Widget Filter for Top 10 similar to when I do it on the Amount - Length field.
Any other suggestions would be much appreciated.
Thanks again,
------------------------------
Adam McIlravey
------------------------------
Original Message:
Sent: Mon November 13, 2023 05:49 PM
From: HENK CAZEMIER
Subject: Top X for Stacked Bar/Column Chart
Hi Adam,
Have you tried to apply the top-operation to the Bars slot?
------------------------------
Kind regards,
Henk Cazemier