I had a similiar problem on my buddies X1. The back was losing major power. I thought it was something in the ignition system. I changed wires then plugs about 4 times and cleaned the intake, nothing worked. I ended up taking it to the dealer and it turned out to be the engine temperture sensor. The actual part is pretty cheap and easy to change I think I think. Worth looking at.