There is a permission that you must add to the group to which you're sharing the dashboard. There is a "Top-N Analysis" permissions you need to give that group. Otherwise, the access denied will be displayed when users in that group try to access the dashboard in question.