How to calculate median for a report in Visual Studio .NET

Posted on 2007-09-28
Last Modified: 2013-11-26
I would like to know how to calculate the median for the values in a particular field.  I am using Visual Studio .NET to produce a report.  I can calculate the average without any problem, but I cannot seem to figure out how to calculate the median.  How can this be done?  Can this be done in the properties?  Any help would be greatly appreciated.
Question by:sparklineyes
    LVL 48

    Expert Comment


    Author Comment

    I couldn't quite follow that.  I am a beginner with this.  
    LVL 48

    Accepted Solution

    Just copy the accepted soluction ID:12285657 from Desp and paste on your project. If you don't want it you can make a new form add the controls that he uses and paste the code inside the control events.

    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now