Pho3nix
The Legend
Hi all,
So below is an extract of my result set. I want to sum the attendees but only the value from the first row. IE. SUM should give me back 4.
SUM(First(Field!NoOfAttendees.Value)) doesn't work as it's a feature not to allow such in aggregates. Can't change anything in SQL, so this change HAS to be done in SSRS.
Any thoughts would be appreciated and 5 Internets are available to the person who assists
[table="width: 500"]
[tr]
[td]Id[/td]
[td]Consultant[/td]
[td]NoOfAttendees[/td]
[td]Area[/td]
[/tr]
[tr]
[td]1[/td]
[td]John[/td]
[td]3[/td]
[td]GP[/td]
[/tr]
[tr]
[td]1[/td]
[td]John[/td]
[td]3[/td]
[td]GP[/td]
[/tr]
[tr]
[td]1[/td]
[td]John[/td]
[td]3[/td]
[td]KZN[/td]
[/tr]
[tr]
[td]2[/td]
[td]Piet[/td]
[td]1[/td]
[td]CPT[/td]
[/tr]
[/table]
So below is an extract of my result set. I want to sum the attendees but only the value from the first row. IE. SUM should give me back 4.
SUM(First(Field!NoOfAttendees.Value)) doesn't work as it's a feature not to allow such in aggregates. Can't change anything in SQL, so this change HAS to be done in SSRS.
Any thoughts would be appreciated and 5 Internets are available to the person who assists
[table="width: 500"]
[tr]
[td]Id[/td]
[td]Consultant[/td]
[td]NoOfAttendees[/td]
[td]Area[/td]
[/tr]
[tr]
[td]1[/td]
[td]John[/td]
[td]3[/td]
[td]GP[/td]
[/tr]
[tr]
[td]1[/td]
[td]John[/td]
[td]3[/td]
[td]GP[/td]
[/tr]
[tr]
[td]1[/td]
[td]John[/td]
[td]3[/td]
[td]KZN[/td]
[/tr]
[tr]
[td]2[/td]
[td]Piet[/td]
[td]1[/td]
[td]CPT[/td]
[/tr]
[/table]
Last edited: