Hi,
Still getting to grips with SSRS so any help would be appreciated.
My aim is to calculate a conditional field using the SSRS expression feature, the datasource is a shared dataset which i can't alter so i can't just go an alter the SQL query or anything.
In SQL my query would be like this: SELECT COUNT(TotalHours) FROM TableName WHERE TotalHours <= 24
Is there anyway to combined the Iff and Sum operator's to get a result like the above?
At present all i managed to come up with is the below but obviously it's not returning the correct amount.
=IIf(Fields!TotalHours.Value <= "24", Sum(Fields!TotalHours.Value), 0 )
Please help!
Edit: Please note that i'm not trying to sum a field based on a condition that relates to another column, i just need a sum of 'TotalHours' that are less than or equal to 24, please also note there is another field called category, each category needs a sum of the above.
Regards,
Marcus
Plain_Clueless