You need to check the following:
1) Does the airline you are planning to fly IN on have an interline-through-baggage-check-agreement in DXB with the airline you are planning to fly OUT on from your origin to your destination?
2) If the answer to the above is YES, you will only need to transit DXB. If the answer to the above is NO, depending on your passport, you may need a visa (additional cost) to enter the UAE and recheck your bag. Please check your visa requirements at:
http://www.skyteam.com/en/your-trip/...sa-and-Health/
If you provide more specific details on your proposed flights, someone on here can look into it further.