Forum Discussion
Columns Calculation add
- 5 years ago
Anonymous ,
Activity between October 2020 and Decembre 2020 = if(isblank(countx(filter(Table, Table[ID] = earlier([ID) && [Date] >=date(2020,10,1) && [Date] <=date(2020,12,31)),[ID])), "No", "Yes")
Nbr Activities during this period by id = countx(filter(Table, Table[ID] = earlier([ID) && [Date] >=date(2020,10,1) && [Date] <=date(2020,12,31)),[ID])+0
Hi Anonymous ,
According to your needs and I did the following test, First create a date list as the judgment condition, then count the number of rows that meet the time range. Get the final result.
Column =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER (
ALL ( 'Table' ),
[Column 2] = 1
&& 'Table'[id] = EARLIER ( 'Table'[id] )
)
)Nbr Activities during this period by id =
IF ( 'Table'[Column 2] = 0, 0, MAX ( 'Table'[Column] ) )
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.