Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I know avg is not that function I need, but I am not sure what is...
I have put all the details in my example file.
Thanks
Oli
Try
=sum([# Order line value]) / count( distinct [Inv Month])
sum([# Order line value])/Count (DISTINCT [Inv Month])
Hi
use this expression
sum([# Order line value])/Count(TOTAL DISTINCT [Inv Month])
find the attached Qvw
its worked fine.
this gives the desired result, although I would try to remodel the data to avoid using DISTINCT
sum([# Order line value]) / Count(DISTINCT [Inv Month])
hi i don't understand what u want clearly,do u want something like this?please check attached file
Like attached?
Or put this in your expression field:
=avg(aggr(sum([# Order line value]),[Inv Month]))
I am attaching your application with two options, one based on counting the number of months and the other using Dimensionallity().
Hi
Try like this
=If(RowNo() = 0 or IsNull(RowNo()), Sum([# Order line value]) / Count( DISTINCT
[Inv Month]), Sum([# Order line value]) / Count( [Inv Month]))
Hi Oli,
this expression should give you a cumulative sum of your [# Order Line Value] field. It should be simple to then calculate your average.
rangesum(above(total sum([# Order line value]), 0, only([Inv Month])))
Marcus
--edited as I missed out the rangesum!