Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
4 years ago
Solved

Help with sales goals

I'm setting monthly sales goals and comparing it to actual sales. Everything works well when I apply filters every month.

But when I try to select two months, the goals don't add up.

My Goals Table

metas.JPG

All right when I select a single month.

DAX used:

Monthly Goal =
CALCULATE(
MAX(Goals[Meta Sales]),
TREATAS(VALUES(Calendar[Month]),Goals[Month])
)

Captura 2.JPG

But when I select more than a month, the goals don't add up.

Captura 3.JPG

3 Replies