How we can use a formula column in order by clause [message #169319] |
Wed, 26 April 2006 04:49 |
gladiator
Messages: 21 Registered: April 2006 Location: Lahore, Pakistan
|
Junior Member |
|
|
Hi,
I need ur sugessions guys/guls can u tell me how we can use a formula column in order by clause. the situation is this i have used a formula in one of my detail data block and now in out put of the report i want to order by/sort the data on that formula column.
any ideas???
|
|
|
|
|
Re: How we can use a formula column in order by clause [message #170325 is a reply to message #169319] |
Wed, 03 May 2006 06:07 |
gladiator
Messages: 21 Registered: April 2006 Location: Lahore, Pakistan
|
Junior Member |
|
|
Hi,
Tnx for ur replies.
but my problem is still there, let me explain iin detail, lets suppose my query is this
SELECT vendor_id,segment1 FROM
po_vendors
there is a formula column that do some calculation and return a value, i want to order by on this value. but as u suggest me to use break order property but it is not working, i m using dev6.
Regards.
Usman
|
|
|
Re: How we can use a formula column in order by clause [message #170335 is a reply to message #170325] |
Wed, 03 May 2006 06:56 |
na_deu
Messages: 7 Registered: April 2006
|
Junior Member |
|
|
if you have a leading group before the group that contains the formula, then the order by the formula would not be the leading order .
you can put all the columns in the same group with the formula and let the formula be the first column in that group. keep the ascending break order on that formula.
let us know if it works now.
|
|
|
|
|
|