You probably forgotten to add the sum over all x. (Without the sum the formula is not true, as you can verify yourself by checking concrete examples.)

With the sum it is Chu-Vandermonde identity:

Vandermonde's identity - Wikipedia, the free encyclopedia

Chu-Vandermonde Identity - ProofWiki