You'll need to be playing the Teutonic campaign. As Denmark, forming the Union of Kalmar is possible—here's how:
First, capture the Scandinavian settlements of Kalmar, Göteborg, Visby, Uppsala, and Åbo. Once you control all of them, eliminate the Norwegian king, either by assassination or open battle. Important: if you wipe out the entire Norway faction, you can no longer form the union.
Successfully unite the two, and Denmark gains a new banner, inherits all of Norway's settlements and armies, and unlocks three new units to build.