Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Experts,
I want to generate output variable in my qvd file, please help.
Left join(Table)
LOAD ID, FID, count(ID) as Output
Resident Table
Group By ID, FID
Otherwise you'll get 1 for each row.
Please try this as expression where ID and FID are dimensions in straight table:
=Left(aggr(Rank(FID),ID),1)
Thanks,
Angad
Hi,
A Group By on Load should do.
Assuming you just wanna test this from you qvd file, and no null in ID:
CountTable:
LOAD ID, FID, count(ID) as Output
FROM Table.qvd(qvd)
Group By ID, FID
;
If you wanna load other data from the qvd, better do the Group By after on Resident table, it should be faster:
Table:
Load *
FROM Table.qvd(qvd)
;
Left join(Table)
LOAD ID, FID, count(ID) as Output
Resident Table
Group By ID, FID
;
Hope this helps
Left join(Table)
LOAD ID, FID, count(ID) as Output
Resident Table
Group By ID, FID
Otherwise you'll get 1 for each row.
Thanks mate, appreciated your help!
Thanks mate, appreciated your help!