Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
This is my script
T1:
LOAD
RowNo() as ROW,
ID,
DATE,
PRODUCT,
SALES
FROM
(ooxml, embedded labels, table is Sheet6) ;//Where RowNo()<20 Order by PRODUCT desc;
NoConcatenate
T2:
load
RowNo() as RANK,
ID,
DATE,
PRODUCT,
SALES
Resident T1 Where RowNo()<20 Order by PRODUCT desc;
DROP Table T1;
I am Writing Order By statement in Script its not working
if I am Writing Order By statement in Resident table its working
Can any one Explain me Why this Behaving like this
Regards,
Mahesh
Hi Mahesh,
You can do a order by only in resident load of data. It won't work for direct load of QVD and flat files. You can see this in help file.
Hi Mahesh,
You can do a order by only in resident load of data. It won't work for direct load of QVD and flat files. You can see this in help file.
From QlikView Help:
That's the answer I guess.
OK,Thanks Bro
I have one More Doubt
Is it Rank Function will work with Agg() Function.
Regards
Hi Mindaugas,
Thanks,
Is it Rank Function will work with Agg() Function.
Regards
Yes. I guess you are asking like below expression.
=Aggr(If(Rank(Sum(Sales))<=10,Customer),Customer)
Hi Bro,
If I am Doing like this i am getting
sum({<PRODUCT={"=Rank(SUM(SALES))<=10"}>}SALES)
I tried with your Expression i am not getting any thing
You can use either calcualuated dimension or expression to acheive the result. What I have suggested is calculated dimension formula.
Try like below.
Calculated dimension:
=Aggr(If(Rank(Sum(SALES))<=10,YourDimensionName),YourDimensionName)
Expression:
Sum(SALES)
Hi,
Thanks Bro,
I got It
Regards
Mahesh