Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I've got some problems with re aggregating an existing table. E.g. I got following fields in a table:
In use of some phone system, there can be multiple calls, different CallIDs, with the same LinkedID. Now what I want to do, is aggregate those lines into one. So I want only one line per LinkedID including the following:
I've tried with load resident and group by LinkedID but somehow it won't work.
Thanks for your help in Advance!
can you share sample data and expected results
As you can see in the image below, there are multiple Entries with the same call linked ID. I want to reduce this table to one line per Linked ID and join it to some other table. This table here should keep its fields. the combined values for the result line per linked ID should be like:
E.g. for the first Entry, Linked ID = 1533714402.6436, I want following:
Check out this,
Data:
LOAD CallLinkID,
Timestamp(Min(Timestamp#(CallTime,'DD.MM.YYYY hh:mm:ss')),'DD.MM.YYYY hh:mm:ss') as CallTime,
Min(DurSec)+Min(BillDursec) as DurSec,
Max(BillDursec) as BillDursec Group by CallLinkID;
Load *
INLINE [
CallTime, CallLinkID, DurSec, BillDursec
08.08.2018 09:46:42, 1533714402.6436, 6, 5
08.08.2018 09:46:45, 1533714402.6436, 8, 8
];
At the moment i use:
left join(AllCalls) LOAD [call linked ID], min(calldate) as [call time], max(calldate) + [duration (sec)] - min(calldate) as [duration (sec)], max([duration billing (sec)]) as [duration billing (sec)] Resident click2dialcalls group by [call linked ID] ;
Sadly I get Invalid Expression error and can't see why.