Wiping data is equivalent to doing a factory reset. Wipe system, data, cache, dalvik and vendor, then connect your phone to a computer, enable MTP and copy the new ROM Zip you downloaded, then flash away.
It's best to follow instructions from OP on your ROM XDA.
Sent from my Redmi Note 5 using...