Adair Júnior
06/26/2023, 1:02 PMFrancisco Antunes
06/26/2023, 2:26 PMSELECT SUM(*Date*) WHERE TOP(10) IN (SELECT SUM(*Date*)
If we use that as our Metric in the Analytical Designer, slicing it by the attribute we want to list, it will show us the Top 10 by most recent date. However, it will have a numerical value which is not quite what we want.
The second step is to create a RANK metric for the TOP(10) metric, like so:
SELECT RANK(*TOP 10 dates*) DESC
Finally, create a new Insight in the Analytical Designer, adding the Rank metric above and slicing by your attribute, and you should see the current top 10 most recent entries by Date, ranked from 1 to 10. You can also slice it by Date too, to display the actual dates for each entry.
Give that a shot and let me know if it works out for you!Adair Júnior
06/26/2023, 5:40 PMFrancisco Antunes
06/26/2023, 6:02 PMAdair Júnior
06/26/2023, 6:19 PMAdair Júnior
06/26/2023, 6:58 PMFrancisco Antunes
06/26/2023, 7:28 PMMichal Nikodem
06/27/2023, 9:45 AMSELECT SUM(*Date*) WHERE TOP(10) IN (SELECT SUM(*Date*)
.
What you can do is, you can include this filter also for revenue metric, which might look like this SELECT SUM(*Revenue*) WHERE TOP(10) IN (SELECT SUM(*Date*)
, basically you can use that TOP(10) IN METRIC filter also in different metrics. Hope this helps.