5 Replies Latest reply: Jul 28, 2017 8:25 AM by Julien Le Berre RSS

    Calculate difference at min/max date of a selected period

    Julien Le Berre



      I'm trying to calculate the difference between the number of customers at the min date of the selected period, and the number of customers at the max date of the selected period.


      My idea is to perform an operation like this (but not sure it is a good solution): count(customers at max date) - count(customers at min date)


      I've tried :


      count({<Month={'=max(Month)'}>}distinct CustomerID) ...




      FirstSortedValue(Aggr(count(distinct CustomerID),Month),-Month) ...


      But it doesn't work.


      Any idea?