Often interchangeable, but generally speaking, if the narrative wasn't particularly funny until the last line, that would be a qID while a lut tlhaQ is a narrative that's funny, at least sporadically, throughout.
Note that to play a practical joke on someone, to trick on someone, is not qID (the verb meaning "joke"). It's chem "prank." – (qepHom 2022, p. 17)