SSRS Expressions

  • Hi guys,

    I needed to add an expression to the field in an SSRS report, basically I want it to display the number of trainees in the stored procedure query where their status is null.

    So normally in T-SQL id just do:

    SELECT COUNT(DISTINCT(TRAINEEID))

    FROM #ATI

    WHERE STATUSCHANGEREQUEST IS NULL

    I just need to do that in an SSRS expression, is that do-able?

    As the stored procedure pulls a row per trainee.

    Thanks for your help in advance

    Regards,

    Aisha

  • Hi Aisha,

    You can do this, just use an expression within the summary e.g.

    =CountDistinct(Iif(Fields!StatusChangeRequest.Value Is Nothing, Nothing, Fields!TraineeID.Value))

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply