Siraj,
Ultimately IRR is just mathematics and DAX is full of iterative formulas so it must be possible! Even in standard Excel, I wouldn't trust the NPV/IRR formulas to get it right (because they often don't).
Maybe post the full problem with an explanation of what your output looks like and the structure of your data in a new post.
Jacob