I noticed it when I was driving it 2 weeks ago when I got pulled over

All of the sudden the car got real rough at idle and I felt lack of power in low RPM's, then when I step on the gas more it feels it bypasses the range and it feels normal. I went over the spark plugs and wires and I still have this problem. Any ideas?