1 Reply Latest reply: Jun 21, 2017 4:43 AM by Глеб Aitov RSS

    Chart 90-days rolling, when no sales data on certain dates

    Глеб Aitov

      Hi!

       

      The below formula works great on a chart with DATE Dimension.

       

         sum(

         Aggr(RangeSum(Above(

           Sum(Sales), 0, 90)), ([Date],(NUMERIC,ASCENDING)))

      )

       

      There is one exception: if there were no sales on certain days, it continue to sum up the values, until it gets 90 records in total (not calendar days).

       

      Is there other way to show rolling Sales based on number of Calendar days, rather than number or rows?

       

      Thank you!