I had something like that happento me on a new pathfinder. Acceleration was sluggish, idle was rough. I got it towed to the dealer and come to find out it was fine when the guy drove it up the tow ramp. We chalked it up to something clogged in the fuel line temporarily. Hard to say for sure if you're having the same issue.