ruthhacche
Board Regular
- Joined
- Sep 22, 2017
- Messages
- 84
I have the set up below. Transaction 01234 has an invoice for £2.00 and a Credit for £0.50 (net £1.50) This was settled by £1.00 paid on one date and £0.50 paid on another date. The customer table links to both via a customer ID in all 3 tables not shown.
For all transactions in my Order table I want to know how much has been allocated in the Allocations table. I have tried
It is finding the correct value for this transaction line but it is losing the filter and crossing every order to every order to return millions of lines.
I am no doubt being thick. Please help.
For all transactions in my Order table I want to know how much has been allocated in the Allocations table. I have tried
Paid = CALCULATE ( sumx(ALLOCATIONS, ALLOCATIONS[Value]), CROSSFILTER ( ALLOCATIONS [ref]] ,ORDERS [Ref], Both) ) |
I am no doubt being thick. Please help.