I am trying to calculate top top n% of customers within each category . i have used knowledge base (option - a) https://kb.tableau.com/articles/howto/displaying-top-percent-instead-of-top-n it fails to provide the correct result. My category is filtered by dense rank.
below is table format.
|Header 1||Header 2||Header 3|
I think you actually want to look at Finding the Top N Within a Category
If that doesn't work for you, then if you can share a workbook with some dummy data we may be able to give you more specific advise.
Hope that helps