Question about cross tab query

I created a cross tab query that is working the way I wanted. The only issue is for every new record it creates another line. I am trying to list one part # across with each months qty. When I run the query if there is a qty in each month it will create a new line so there are multiple of the same part #. I attached a photo to help explain better than I can. Any idea how to show one line with the qty for each month?
                     
End goal is to look like this
                            01/17      02/17     03/17
02A0009-03          132             0            5


SQL
TRANSFORM Sum(PK1_TX.TX_QTY) AS SumOfTX_QTY
SELECT PK1_IM.IM_KEY
FROM PK1_IM INNER JOIN PK1_TX ON PK1_IM.IM_KEY = PK1_TX.TX_IMKEY
WHERE (((PK1_IM.IM_KEY) Like "02A*" Or (PK1_IM.IM_KEY) Like "02B*" Or (PK1_IM.IM_KEY) Like "07A*") AND ((PK1_TX.TX_DATE) Between #12/14/2016# And #12/14/2017#) AND ((PK1_TX.TX_TYPE)="I"))
GROUP BY PK1_IM.IM_KEY, PK1_IM.IM_ON_HAND, PK1_TX.TX_DATE, PK1_IM.IM_UNIT_S, PK1_IM.IM_UNIT_I, PK1_IM.IM_UNIT_R, PK1_TX.TX_TYPE, PK1_TX.TX_MOSJOB, PK1_TX.TX_MOSLOT
PIVOT Format([TX_DATE],"mm\/yyyy");
example-of-cross-tab-query.PNG
HOTWATTAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
You should group by IM_KEY only:

GROUP BY PK1_IM.IM_KEY

Open in new window

/gustav

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HOTWATTAuthor Commented:
That was the problem. I knew it had to be something simple. Thanks for the help!
Gustav BrockCIOCommented:
You are welcome!

/gustav
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SQL

From novice to tech pro — start learning today.