M
Mark
Hello,
Is there a way of calculating quartiles (value of a field
at each 25% of observations when sorted into ascending
order) in a query expression?
Excel can do this with the "Quartile" function but Access
does not seem to support this.
At the moment I am hard coding the values of the quartiles
into my query expression like this:
Quartile: IIf([tblStore].[SumOfValue]<=438771,"Low",IIf
([tblStore].[SumOfValue]<=1645333,"Medium",IIf([tblStore].
[SumOfValue]<=4840280,"High",IIf([tblStore].[SumOfValue]
<=23730230,"Very High","Error"))))
The 4 numbers in this expression are the values of the
quartiles as calculated in Excel, but I need a more
dynamic way of doing it so that if the underlying data
changes so will my quartile values.
Thank you for any help in advance.
Mark
Is there a way of calculating quartiles (value of a field
at each 25% of observations when sorted into ascending
order) in a query expression?
Excel can do this with the "Quartile" function but Access
does not seem to support this.
At the moment I am hard coding the values of the quartiles
into my query expression like this:
Quartile: IIf([tblStore].[SumOfValue]<=438771,"Low",IIf
([tblStore].[SumOfValue]<=1645333,"Medium",IIf([tblStore].
[SumOfValue]<=4840280,"High",IIf([tblStore].[SumOfValue]
<=23730230,"Very High","Error"))))
The 4 numbers in this expression are the values of the
quartiles as calculated in Excel, but I need a more
dynamic way of doing it so that if the underlying data
changes so will my quartile values.
Thank you for any help in advance.
Mark