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!

calculation

Status
Not open for further replies.

vasu1211

Technical User
May 10, 2007
21
US
ocity ostate dcity dstate carrier price
A B C D X 1200
A B C D Y 1500
A B C D Z 2000

BASE Price for this lane is 2500



This is a sample taken out from my report. Now i want to
calculate savings such that savings= base price- lowest price among all the carriers. ie in this example it will be savings= 2500-1500. These values are different for different lanes. How do i put this calculation in form of an expression.
 
How are ya vasu1211 . . .

Have a look at the [blue]DMin[/blue] aggregate function! . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
In your report footer, you should be able to use an expression like:
=2500 - Min(price)

Apparently we don't need to know where "lane" and "2500" come from ;-)

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top