Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Latest commit

 

History

History
12 lines (6 loc) · 549 Bytes

README.md

File metadata and controls

12 lines (6 loc) · 549 Bytes

SSRSAggLookup

VB code for embedding in an SSRS report, allows aggregating in a number of ways over a lookup set

To use paste into the Code window of the Report Properties, then use the following expression in an object:

=code.AggLookup([AggregateType as String 1], [Lookupset 2])

1: Supported aggregates are Sum, Count, CountDistinct, Avg, Min, Max, Last, and First. AggregateType has been updated to be case insensitive.

2: Use SSRS LookupSet expression, i.e. LookupSet([LocalMatch], [TargetMatch], [ReturnValue], [Dataset as String])