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!

max formula help

Status
Not open for further replies.

BlurredVision

Technical User
Aug 6, 2001
326
GB
Hello All.

I have the following formula in my report header (Running CR 9)

Maximum ({@ES520Date});
Maximum ({@ES521Date});
Maximum ({@ES522Date});
Maximum ({@ES523Date});

I would like to take the above and do a max on those 4 items within the report header. Any ideas.. ? I tried
Maximum({@ES527Date},{@ES525Date}); but that won't work.

Thanks for your time... Brian

 
Set it up as an array:

Maximum ([{@ES520Date},{@ES521Date},{@ES522Date}{@ES523Date}])


Mike
 
Try this:
Create a formula for your Report Header.
Place this in the formula:
Code:
dateVar array maxDate := [Maximum ({@ES520Date}),
                          Maximum ({@ES521Date}),
                          Maximum ({@ES522Date}),
                          Maximum ({@ES523Date})];
Maximum(maxDate)

~Brian
 
My formula should have been:

maximum([Maximum ({@ES520Date}),Maximum ({@ES521Date}),Maximum ({@ES522Date}),Maximum ({@ES523Date})]]

which Brian has demonstrated.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top