The triggered ability does not check the creature's power until the ability resolves. If the creature is not on the battlefield when the ability resolves, it does damage equal to the power of the creature right before it left the battlefield. This means that if a creature enters which can destroy itself as an "enters" ability, the order of resolution of the triggered abilities does not matter.

Artwork
Loading artwork…
Pandemonium
The List · #TPR-149 · EN
Nonfoil—Foil—
Card rules
Whenever a creature enters, that creature's controller may have it deal damage equal to its power to any target of their choice.
"If we cannot live proudly, we die so!" —Eladamri, Lord of Leaves
Rare · Illustrated by Pete Venters
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If player A controls Pandemonium when a creature enters under player B's control, player A controls the triggered ability even though player B chooses the target and chooses whether to have the creature deal damage, which could be important if multiple abilities controlled by multiple players trigger.