Assign order number based on another dimension column value
Given a table as the one on the screenshot below:
I would love to create a new column on the right side giving me the order of each row based on its ID and its antiquity as well. In other words, my desired output should look as follows:
I know this is doable in Qlik View by combining aggr() and rowno() functions. Nevertheless I've tried to replicate this method in Qlik Sense but all my attempts had been unsuccessful so far. How should I do to get this outcome?