Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUM DISTINCT

Status
Not open for further replies.

t16turbo

Programmer
Mar 22, 2005
315
GB
hi there,

is there a way I can perform a sum of distinct values in an expression?

My sql behind the report returns one or more rows for a single time entry (as I am also returning timehseet notes)

My report has grouping levels with the timesheet notes at the lowest levels
I need to only sum the actuals at distinct time entries, rather than each time entry being multiplied by the number of notes that are against it.


 
Yes, there is.

The expression should be of the form:
Sum( <DataRow Variable> ) Distinct( <DataRow Variable> )

I hope this helps.

-- JB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top