If you cast Impending Flux from exile, it counts itself when determining the value of X.
Impending Flux
Because exiling a card with foretell from your hand is a special action, you can do so any time you have priority during your turn, including in response to spells and abilities. Once you announce you're taking the action, no other player can respond by trying to remove the card from your hand.
Casting a foretold card from exile follows the timing rules for that card. If you foretell an instant card, you can cast it as soon as the next player's turn. In most cases, if you foretell a card that isn't an instant (like Impending Flux), you'll have to wait until your next turn to cast it.
Magic: The Gathering · ™ & © Wizards of the Coast · Illus. Ben Wootten
Card data via Scryfall. Rarix is fan-made; not endorsed by the rights holders.
