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

Order from highest to lowest on a formula within a group

Status
Not open for further replies.

sue1127

Programmer
Jul 10, 2000
88
US
I would like to order from highest to lowest variance within a group. The variance is determined by a formula which subtracts year-to-date balance(a running total) from budgeted amount(also a running total).

I thought I might be able to use TopN/Sort Group Expert, but that option is greyed out.

Does anyone have any suggestions as to how I might do this?

Thanks very much.

Sue
 
Hi Sue,

I had similar issues with TOP/N and found it was because I was attempting to base TOP/N on a formula that used variables. If it's not variables then post the formula so that I can take a look.

Cheers

Paulos
 
Paulos,

No variables are involved.

The formula is just:

{@chkrunbudaccount}-{@chkrunningytd}

@chkrunbudaccount is:
if isnull({#RunBudgetAccount}) then 0 else {#RunBudgetAccount}


@chkrunningytd is:
if isnull({#runningytd}) then 0 else {#runningytd}

Thanks,

Sue

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top