SQL Reporting Services - How to use conditional Count in Report

Posted on 2006-04-11
Last Modified: 2010-06-14
Is there any way we use variables in SQL Reporting Services as we use in Crystal like

if {Query.cur_status}="Approved" then
    shared numbervar A:= A + 1

and then in Group Footer we use variable A to display the counts for Approved.


Question by:punjwani
    LVL 11

    Expert Comment

    by:Ved Prakash Agrawal
    Yes you can Use Expression where you can use Conditional formating or counting like we cabn say you can use function in Expression...
    LVL 11

    Accepted Solution

    Refer my previous post..

    you can place one text box in report where you want to use expression like you can place that textbox in Page Header or footer.
    and then Right Click on to the TextBOX where you can see Expression.
    when you goes into Expression window there you can see many things Like function (As you can see in crystal report )...

    Expression are used as formula in crystal report...

    I think this can be usefull for u..


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
    JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
    Via a live example, show how to shrink a transaction log file down to a reasonable size.
    Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

    761 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

    8 Experts available now in Live!

    Get 1:1 Help Now