Forum Discussion
measure relative value dont work
- 1 year ago
One way it seems to work. When i create a new table
FILTER( MEMBER, YEAR(MEMBER[ENTRYDATE]) = YEAR(MEMBER[date_endofmonth]) && MONTH(MEMBER[ENTRYDATE]) = MONTH(MEMBER[date_endofmonth])and remove this part from the measure than i get the right values. So the error must be here somewhere.
Pikachu-Power , Try using
Measure_count_entry_relative :=
VAR CurrentCount = CALCULATE(
COUNT(MEMBER[ENTRYDATE]),
FILTER(
MEMBER,
YEAR(MEMBER[ENTRYDATE]) = YEAR(MEMBER[date_endofmonth]) &&
MONTH(MEMBER[ENTRYDATE]) = MONTH(MEMBER[date_endofmonth])
),
MEMBER[AGE_ENTRYDATE] >= 18 && MEMBER[AGE_ENTRYDATE] <= 94
)
VAR TotalCount = CALCULATE(
COUNT(MEMBER[ENTRYDATE]),
FILTER(
MEMBER,
YEAR(MEMBER[ENTRYDATE]) = YEAR(MEMBER[date_endofmonth]) &&
MONTH(MEMBER[ENTRYDATE]) = MONTH(MEMBER[date_endofmonth])
),
MEMBER[AGE_ENTRYDATE] >= 18 && MEMBER[AGE_ENTRYDATE] <= 94,
REMOVEFILTERS(MEMBER[CLUSTER_ENTRYDATE])
)
RETURN
DIVIDE(CurrentCount, TotalCount, 0)