I have 2 databases, TradingDB and Accounts witch are related.
In the TradingDB I have property's:
Clossing Time (date property with date and time)
Profit (Number property with eur format)
I want to make a formula in the Accounts database witch gives me a list of every unique Closing Time (day!) Profit.
So it should sum every entry's profit with the same day (in Closing Time property) and make a list of the profits.
Is this possible?
prop("Trading DB").map(current.prop("⏰CLOSE TIME").formatDate("YYYY-MM-DD")).unique().map(
lets(
tradingdays,
current,
trades,
prop("Trading DB").find(
current.prop("⏰CLOSE TIME").formatDate("YYYY-MM-DD") == tradingdays
),
trades.prop("Profit")
)
)
I have this so far but this gives only 1 entry of that day and not all entry's summed for each day.
Kind regards
TommyFFX