How can i get a SUM of a column from a table that contains the reference key to a parent table in a one to many relationship??
In SQL it would be something like:
SELECT SUM([Price]) from tblInvoice WHERE tblCUSTOMER([CustId]) = tblINVOICE([CustId])
SUM(SELECT(INVOICE[Price],[CustId]=[_THISROW].[CustId]))
Thanks!
Thanks for that Levent โฆ but i cannot seem to find how to use that expression to get what i want โฆ which is this:
I have a spreadsheet with two tabs (tables) โฆ first tab contains the main record which has DATE as Primary Key โฆ the next tab has child records with that DATE as a Foreign Key (along with its own PK of course).
In my app i have been able to create a slice where it returns the single header row for TODAY() โฆ together with the detailed child records belonging to the second tab!!
But where i am now stumped is being able to SUM the financial number column in the child table for that particular header date โฆ and then being able to show that summation in the header record โฆ as some โvirtual fieldโ i suppose?? โฆ so that the user can always see what the running total for the particular day is.
Can this be done?? If so any tips would be appreciated.
Thankyou in advance.
SUM([RelatedRecords][Price])
User | Count |
---|---|
41 | |
27 | |
27 | |
20 | |
13 |