To avoid a long, unnecessary and expensive problems (I speak from experience) please try the following:
First, disconnect the speedometer drive from the gearbox. Using a drill on slow speed, try gently turning the square drive and seeing if the speedometer registers.
If it does then the problem is most likely the gearbox spindle/worm drive which is worn. You can buy new ones from the cherished A7 suppliers.
If on the other hand, you find that the speedometer does not work then first check the cable at both ends. If it turns then the cable should be ok.
Finally, if the speedo is the issue then you can have it rebuilt but it can be rather expensive (£100++).