Sum column values below 5000 which values are calculated values

Posted on 2012-09-21
Last Modified: 2012-09-21
image of tablix showing columns
I have a column in the report that has currency values called old price, then the far right column which shows only the values under 5000. I want to sum those displayed values. Because the value is in an expression I can't just sum the entire column.
Question by:jpl-AbDev

    Author Comment

    the header in the far right column is showing the incorrect value. I should be 4208.34

    Accepted Solution

    Just added case statement to the stored proc instead of trying to do it in the report

    CASE WHEN pcad.prevprice <=5000 THEN pcad.prevprice ELSE NULL END AS 'changesUnder5k'

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
    After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 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

    19 Experts available now in Live!

    Get 1:1 Help Now