Link to home
Start Free TrialLog in
Avatar of Jeff S
Jeff SFlag for United States of America

asked on

SSRS Expression Help

I need help writing an SSRS expression.

I need to count the distinct patients where a condition is met. For my example, I want to distinctly count the patients where HCPCLabel = 'Medical'.

Distinct Count PatientProfileId, where HCPCLabel = 'Medical'
Avatar of Robert
Robert
Flag of United States of America image

I am not sure I understand your question completely so with out more information the best I can do is provide you with some examples.

you could use the following expression to set the value to 1 if the field is Medical and 0 if not.
=IIf(Fields!HCPCLabel.Value = 'Medical', 1, 0)
you could then sum the value of the column.

or if your referring to a sql query to get you the total then
select count(*) from TABLENAME where HCPLabel = 'Medical' 

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of John_Vidmar
John_Vidmar
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial