see the attached
it is similar to but not exactly what you want - I used it in a presentation on LOD formulas at a recent TUG meeting - the file uses superstore data and the goal was to plot quintiles by state, by year, and by category - I put year on pages to show the dynamic effect over years -
If this posts assists in resolving the question, please mark it helpful or as the 'correct answer' if it resolves the question. This will help other users find the same answer/resolution. Thank you.