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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum formula 2

Status
Not open for further replies.

tonyvee1973

IS-IT--Management
Oct 22, 2009
156
GB
Hi all

I have a formula which shows sales figures for each customer and called it {@discount}
Then i created a "Sum of" that formula to give me a summary and it shows as "sum of @discount"

Now i need to only show that "Sum of @discount" figure if it is within a date range but cant seem to get it working.

I created a formula below but i keep getting errors "Field name is not known"

if {ORD_HEADER.OH_INV_DATE} in {?Enter Start Date} to {?Enter End Date} then sum of {@discount}


Any ideas?
 
you can filter dates in select expert

{ORD_HEADER.OH_INV_DATE} in {?Enter Start Date} to {?Enter End Date}

Then your sums will only be for those dates

Ian
 
Or change your formula to:

if {ORD_HEADER.OH_INV_DATE} in {?Enter Start Date} to {?Enter End Date} then
{@discount}

Then insert a summary on this formula.

-LB
 
Thanks Guys, appreciate the help.

LB - i ended up using your solution, worked like a charm :)

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top