How to find the N oldest (calendar) populated value on a measure which is day_item_store without ran
I have a boolean variable which is day_item_store and I need to find the oldest N date (for example, even if the measure has 50 positions populated I just need to know the day of the oldest 30th).
Since there are a lot of items and stores and a value needs to be determined for each, with ranksort is just taking a lot of time. Is there any other way of doing it with better performance?
Thanks.