hmmm i think i'm starting to see something. does it mean when i'm playing in the key of Gm, i can use the Dm7 as a dominant to resolve back to the Gm7 just like when i'm playing in key of G, i can use the D7 to resolve back to Gmaj7?? am i observing right??
Yes you are right. In minor key, Dm7 is changed to D7. You can try playing Dm7 to Gm7, and then D7 to Gm7, see which one sounds a better pull to Gm7. Let your ear decides what is good for you. In both Gmaj and Gm key, D7 act as the primary dominant resolving to the I chord.
So in the key of Bbmaj, the diatonic chords are:
Bbmaj7 Cm7 Dm7 Ebmaj7 F7 Gm7 Am7b5
1 2 3 4 5 6 7
In Bbmaj, F7 which is the 5th chord act as the primary dominant to resolve to the tonic.
Gm key share the same chord as Bbmaj, so rearranging it becomes:
Gm7 Am7b5 Bbmaj7 Cm7 Dm7 Ebmaj7 F7
1 2 3 4 5 6 7
You see that the 5th chord is Dm7. But Dm7 does not provide a strong enough tension to resolve back to tonic chord Gm7. So you raise the 3rd in Dm7 to become D7.
So now key of Gm:
Gm7 Am7b5 Bbmaj7 Cm7 D7 Ebmaj7 F7
1 2 3 4 5 6 7
Actually a dominant will always create tension for resolution to any chord up a fourth or down a fifth, lets say for in the key of Bbmaj, the following 6-2-5-1 chord progression:
Gm7--- Cm7--- F7--- Bbmaj7---
You can try changing to:
Gm7-G7- Cm7-C7- F7--- Bbmaj7-D7- & back to Gm7
You see there are so many dominant chords? G7 which will resolve up a fourth to Cm7. C7 resolve down a fifth to F7. D7 leads perfectly to Gm7. These are called secondary dominants. dominants that is not related diatonically to the key. But they still works in that key.
I hope I don't make any mistake in the explanation above. Also a beginner in Jazz theory.