{"slug":"what-stocks-are-in-the-dax","qid":"total_return_wedge","label":"total_return_wedge","post_title":"what-stocks-are-in-the-dax","post_url":"/blog/what-stocks-are-in-the-dax#q-total_return_wedge","columns":["year","price_return_pct","dividend_pct","total_return_pct"],"rows":[{"year":"2016","price_return_pct":12.04,"dividend_pct":1.69,"total_return_pct":13.74},{"year":"2017","price_return_pct":30.2,"dividend_pct":1.59,"total_return_pct":31.79},{"year":"2018","price_return_pct":-11.42,"dividend_pct":1.47,"total_return_pct":-9.95},{"year":"2019","price_return_pct":35.1,"dividend_pct":1.69,"total_return_pct":36.79},{"year":"2020","price_return_pct":-4.69,"dividend_pct":1.27,"total_return_pct":-3.43},{"year":"2021","price_return_pct":8.41,"dividend_pct":1.75,"total_return_pct":10.16},{"year":"2022","price_return_pct":-27.02,"dividend_pct":1.84,"total_return_pct":-25.18},{"year":"2023","price_return_pct":48.67,"dividend_pct":2.15,"total_return_pct":50.82},{"year":"2024","price_return_pct":63.91,"dividend_pct":1.59,"total_return_pct":65.5},{"year":"2025","price_return_pct":-0.09,"dividend_pct":1.08,"total_return_pct":1}],"shape":"ranking","sql":"WITH yearly AS\n(\n    SELECT\n        toYear(date)                   AS fiscal_y,\n        argMin(toFloat64(close), date) AS first_close,\n        argMax(toFloat64(close), date) AS last_close\n    FROM global_markets.stocks_daily_aggs\n    WHERE ticker = 'SAP'\n      AND date >= '2016-01-01'\n      AND date <  '2026-01-01'\n    GROUP BY fiscal_y\n),\ncash AS\n(\n    SELECT\n        toYear(ex_dividend_date)    AS fiscal_y,\n        sum(toFloat64(cash_amount)) AS dividends\n    FROM global_markets.stocks_dividends\n    WHERE ticker = 'SAP'\n      AND ex_dividend_date >= '2016-01-01'\n      AND ex_dividend_date <  '2026-01-01'\n    GROUP BY fiscal_y\n)\nSELECT\n    toString(y.fiscal_y)                                                         AS year,\n    round(100 * (y.last_close - y.first_close) / y.first_close, 2)               AS price_return_pct,\n    round(100 * c.dividends / y.first_close, 2)                                  AS dividend_pct,\n    round(100 * (y.last_close - y.first_close + c.dividends) / y.first_close, 2) AS total_return_pct\nFROM yearly AS y\nLEFT JOIN cash AS c ON c.fiscal_y = y.fiscal_y\nORDER BY year","computed_at":"2026-09-26T15:28:26.964747+00:00","elapsed":0.002049555}