Created
September 23, 2020 19:57
Tracking SFMC Account Health: Calculates CTR, Open Rate & List Growth in Account_Health_Monthly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
e.Month, | |
CAST(SUM(d.Opens) as DECIMAL(18,2)) / CAST(SUM(d.Sent) AS DECIMAL(18,2)) * 100 AS 'UniqueOpenRate', | |
CAST(sum(d.Clicks) AS DECIMAL(18,2)) / CAST(SUM(d.Sent) AS DECIMAL(18,2)) * 100 AS 'UniqueCTR', | |
CAST(e.NetGrowth AS DECIMAL(18,2)) / CAST(e.ActiveSubscribers AS Decimal(18,2)) * 100 AS 'PercentGrowth' | |
FROM Account_Health_Monthly e | |
JOIN Account_Health_Daily d | |
ON e.Month = d.Month | |
WHERE d.SentCount > 0 | |
GROUP BY e.Month, e.NetGrowth, e.ActiveSubscribers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment