Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I need Aggregate SUM from different tables. Like this simple ex:
I was use Aggr(sum(Purch),CustId=VendId) but expression do not works. Please help me.
Try this:
Aggr(sum(if(CustId=VendId and DUEDATE<=Today(),Purch)),CustId)
Seems right, but in my real expression do not works.
In my real situation, SUM have some IF's.
SUM(Purch) in really is: sum(if(DUEDATE<=Today(),Purch))
How i must change your expression to be correct?
Try this:
Aggr(sum(if(CustId=VendId and DUEDATE<=Today(),Purch)),CustId)
March better:) Expression works:)