Forum Discussion
Syndicate_Admin
3 years agoAdministrator
Create table from another with a dynamic variable
Good morning, I would like to guide me how to create a table from another with filter but the new table has a dynamic variable in the filter. I attach the following example: I have a table with s...
Syndicate_Admin
3 years agoAdministrator
I explain the problem..... I have a multi-year sales table from different clients...... I want to get the top 20 sales per customer dynamically.... that is, with a year filter that shows me the table of the first 20 cleintes for that year. As the year is in a segmentation, the idea is to obtain this table every time the year varies.
That's why I tried to create the table with the dynamic variable but I understand that you can't..... Would there be another way to get what I am looking for dynamically?
Thank you
lbendlin
3 years agoSuper User
You do that via RANKX() and then TOPN(20,...)