Forum Discussion
Active Members per Month
- 6 years ago
Hi Anonymous
Try this:
1. Delete the relationships
2. Place Calendar[MonthYear] in the rows of a table visual
3. Create this measure
Measure = VAR AuxTable_ = FILTER ( Table1, NOT(
Table1[Registered Date] > MAX ( Calendar[Day] ) || ( NOT ISBLANK ( Table1[Termination Date] ) && Table1[Termination Date] < MIN ( Calendar[Day] ) ) )
) RETURN COUNTROWS ( AuxTable_ )Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.
Cheers

- 6 years ago
Anonymous
Glad to hear it works. I hadn't tested it. We can just add the new condition to the filter:
Measure = VAR AuxTable_ = FILTER ( Table1, NOT ( Table1[Registered Date] > MAX ( Calendar[Day] ) || ( NOT ISBLANK ( Table1[Termination Date] ) && Table1[Termination Date] < MIN ( Calendar[Day] ) ) ) && Table1[Reason for joining] = "Losing weight" ) RETURN COUNTROWS ( AuxTable_ )Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.
Cheers

Hi Anonymous
Try this:
1. Delete the relationships
2. Place Calendar[MonthYear] in the rows of a table visual
3. Create this measure
Measure =
VAR AuxTable_ =
FILTER (
Table1,
NOT(
Table1[Registered Date] > MAX ( Calendar[Day] )
|| (
NOT ISBLANK ( Table1[Termination Date] )
&& Table1[Termination Date] < MIN ( Calendar[Day] )
)
)
)
RETURN
COUNTROWS ( AuxTable_ )
Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.
Cheers ![]()
The measure seems to work for my case too, but I want result from the counta of the start date (registation date column) instead of counting all rows. But, when I change return to counta, it didn't work and this message pop up: The COUNTA function only accepts a column reference as an argument. I have blank rows on my on my start date that is why I want to count only rows with value. Appreciate if you can help me fix it. Thanks,