Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

How to get Median value from a data set

Discussion in 'Information Technology' started by Mike, Jul 28, 2006.

  1. Mike

    Mike
    Expand Collapse
    Guest

    All - I am trying to get Median value for my data set. My table has 3
    fields, FromState, ToState, and PerMileRate. What I want is the Median value
    of all rates that I have from one state to another state. For example, if I
    have rate from GA to DE of $1.00, $1.40, $1.60, and $2.00, I want to get
    Median value of $1.50.
     
  2. Loading...

    Similar Threads Forum Date
    Arts/Society Comedian Jaspal Bhatti dies in road accident in Punjab Language, Arts & Culture Oct 25, 2012
    Sikhism Guru Singh - Comedian Videos May 8, 2011
    General Narinder Singh - Comedian!! Videos Oct 23, 2009
    Sikh News Sikh comedian has the US in splits (The Times of India) Breaking News Feb 16, 2008
    Sikh Values Blogs Oct 21, 2015

  3. Mike Labosh

    Mike Labosh
    Expand Collapse
    Guest

    > All - I am trying to get Median value for my data set. My table has 3
    > fields, FromState, ToState, and PerMileRate. What I want is the Median
    > value
    > of all rates that I have from one state to another state. For example, if
    > I
    > have rate from GA to DE of $1.00, $1.40, $1.60, and $2.00, I want to get
    > Median value of $1.50.


    Access has a built in function that does that (or at least it used to). Be
    careful though -- there is an Avg() function that calculates the average of
    a set, but that's not the same thing as a Median.

    There IS a simple solution, I just can't remember the name of the function.
    Somebody help?
    --


    Peace & happy computing,

    Mike Labosh, MCSD MCT
    Owner, vbSensei.Com

    "Escriba coda ergo sum." -- vbSensei
     
  4. Douglas J. Steele

    Douglas J. Steele
    Expand Collapse
    Guest

    "Mike Labosh" <mlabosh_at_hotmail.com> wrote in message
    news:uf5QMh8jGHA.4884@TK2MSFTNGP03.phx.gbl...
    >> All - I am trying to get Median value for my data set. My table has 3
    >> fields, FromState, ToState, and PerMileRate. What I want is the Median
    >> value
    >> of all rates that I have from one state to another state. For example,
    >> if I
    >> have rate from GA to DE of $1.00, $1.40, $1.60, and $2.00, I want to get
    >> Median value of $1.50.

    >
    > Access has a built in function that does that (or at least it used to).
    > Be careful though -- there is an Avg() function that calculates the
    > average of a set, but that's not the same thing as a Median.
    >
    > There IS a simple solution, I just can't remember the name of the
    > function. Somebody help?


    AFAIK, there's no Median function in Access. However, I did write about how
    to calculate medians in my October, 2005 "Access Answers" column in Pinnacle
    Publication's "Smart Access". You can download the column (and sample
    database) for free from http://www.accessmvp.com/djsteele/SmartAccess.html

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no private e-mails, please)
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page