There are many Campaigns (1 Campaign: 1 Leaderboard), each of them can have multiple Transaction from a CUSTOMERs.
Is there a way to show the top Total Spent from each CUSTOMERs in each CAMPAIGN?
Is this a list of Total Spent, filtered somehow? Or should this be a list of CUSTOMERs?
Say that I multiple CAMPAIGNs (named a, b and c)
Each CAMPAIGN can have multiple CUSTOMERs (named customer1, customer2, customer3)
Each customer can have multiple Transaction for each campaign that we need to sum (named transaction1, transaction2, transaction3)
How to structure a list such that you have for each CAMPAIGN, the top Total Spent per CUSTOMER?
I have already tried to do it but have problem with Sorting Total Spent, and Double Spending of Customer in a campaign, and running ranking #1, #2, … #help:api
This is possible using parent-child (1-to-many) relationship.
An example is like this,
Campaign is higher level
Customer is middle level
Transaction is lower level, this is where price located
If you need more detail, you can have
lowest level for Detail of Transaction, which can have its own price
highest level for Department, which can accumulate total from Campaign
I have unfinished tutorial regarding this,
each level need to be connected to the level above it, using 1-to-many.
I suggest you simulate this in spreadsheet first, and think about leveling.
Show there are show in the leaderboard but “cannot sort with top total spent” of each campaign because the collection of Campaign List cannot sort by total spent because total spent collect in Transaction Collection.
Transactions is for details, that contain each amount to spend.
While Leaderboards is for totals, that contain sum of its transactions, which is accumulated of amount to spend, by making this its own property, rather than sum, you can do sorting.