Hosts
Revenue
SELECT
substring(cast(DATE_TRUNC('month', t."createdAt") as text) from 1 for 7) as month,
-SUM("hostFeeInHostCurrency") / 100 as revenue FROM "Transactions" t
WHERE t."HostCollectiveId"=11004
AND t.currency='USD'
AND t."deletedAt" is null
AND t.type = 'CREDIT'
GROUP BY month
ORDER BY month DESCBackers
SELECT
CONCAT('https://opencollective.com/', max(c.slug)) as "backer",
SUM(amount) / 100 as "amount",
max(t.currency) as "currency"
FROM "Transactions" t
LEFT JOIN "Collectives" c ON c.id=t."FromCollectiveId"
WHERE t.type='CREDIT'
AND (t."HostCollectiveId"=11004)
AND t."deletedAt" IS NULL
AND t."createdAt" >= '2018-01-01'
AND t."createdAt" < '2019-01-01'
GROUP BY t.currency, t."FromCollectiveId"
ORDER BY amount DESCExpenses
Get the breakdown of host fees per collective
US taxes: 1099
Hosts and collectives with currency mismatch
Last updated