Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone, could someone please help me with this scenario?
I need to sum the values Qty considering the period, so my dataset is like this:
sum measure:
sum(aggr(Sum({$<[Date]={"$(='>=' & AddMonths(MonthStart(max([Date])),-11)& ' <= ' & Date(Max([Date]), 'DD/MM/YYYY'))"}>} Qty),[Key]))
aggr measure:
=sum(aggr(FirstSortedValue(Qty ,-aggr(max(Date),[Key])),[Key]))
The expected result is:
thanks in advance