Forum Discussion
PedroAzevedo
11 months agoNew Member
Having trouble creating dynamic goal
Hello! I'm having trouble with this specific issue, and it's not the first time I give up on having dynamic goals, because I can't get it to work, ever. The current situation is as follows: ...
- 11 months ago
PedroAzevedo here is what the measures looks like:
Goal = VAR __CountConusltor = DISTINCTCOUNT ( Accoun[CONSULTOR] ) RETURN __CountConusltor * 3 Action = CALCULATE ( DISTINCTCOUNT ( Accoun[PARTNR] ), CROSSFILTER ( 'Action'[ACCOUN], Accoun[ACCOUN], BOTH ) )
parry2k
Super User
11 months agoPedroAzevedo I already shared the DAX, please test. Keep in mind I added a calendar table in the model and use that to visualize and this is what I did to generate the calendar table and the relationship:
Calendar =
VAR __StartDate = MIN ( 'Action'[DATE] )
VAR __EndDate = MAX ( 'Action'[DATE] )
RETURN
CALENDAR ( __StartDate, __EndDate )