Early in your career, you definitely want to include both, because 50% more professional experience is going to count for a lot, even if it were in an unrelated field.
If it were your last job, you also want to include it, since the obvious question would be "what have you been doing for the last X years?" and that could get your resume thrown out.
If you've worked many jobs, you can arguably leave a few of them that were long ago off, since you're trying to highlight your past experiences to best sell yourself, not give a complete work history.
Of course you can choose how much detail you want to go into for any given role on your resume, depending on how the skills you used there and your achievements relate to any new jobs you're applying for.
This is again very dependent on how much experience you have - if you don't have much to say, including a decent achievement that's unrelated to your target job is likely to only count in your favour, while doing so when you have a lot of other information on your resume might distract from more important things.