Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi expert,
i have 2 fields, Hnua08Cta and Hnua07Pre, for each Hnua08Cta could be more than 1 values, i want to only bring the max Hnua07Pre value
is this posible to do this in the script?
using firstsortvalue() or max function?
i attached a qvw and a qvd to see this example
thank you a lot
Fernando
LOAD HnuA07Cta,
Max(HnuA07PRe),
FirstSortedValue(HnuA07PRe,-HnuA07PRe )
FROM
[HNUA07.qvd]
(qvd) Group by HnuA07Cta;
FirstSortedValue may not work for few rows since you have duplicates in Hnua07Pre
try this
firstsortedvalue(Hnua08Cta ,-Hnua07Pre)
Manoj, Invalid Expression said
try this now
firstsortedvalue(Hnua07Pre,-Hnua08Cta )
Invalid
then i have to put some group by?
may i know what kind of data u have in the fields
give me some sample records
Both of them are number(integer)
i attached the qvd and the qvw
thank you!
LOAD HnuA07Cta,
Max(HnuA07PRe),
FirstSortedValue(HnuA07PRe,-HnuA07PRe )
FROM
[HNUA07.qvd]
(qvd) Group by HnuA07Cta;
FirstSortedValue may not work for few rows since you have duplicates in Hnua07Pre