Thank you for reaching out to us on the Microsoft Q&A forum.
We tested the formula on our end, and it is working as expected without any errors. Please refer to the attached screenshots for reference.
If you're still encountering the error, please ensure that the relationships between the Sales and Product tables are correctly set up in your data model. Additionally, check for any ambiguity in the relationships that might be causing this issue.
If you're still facing any difficulties, please share a screenshot of the error along with details on where exactly it occurs, and we'll be happy to assist you further.
If the information provided is helpful, please Accept Answer and Upvote so that it can benefit other community members.
Thank you.