Forum Discussion
Measure to filter a gantt chart based on two dates
- 5 years ago
Hi angieleman ,
Please try to delete the relationship between Dates and Combo table. Then create measure.
Measure = var MinDate = MIN(Dates[FirstofMonth]) var MaxDate = MAX(Dates[LastofMonth]) var tab = CALCULATETABLE( VALUES(Combo[activities]), FILTER( 'Combo', 'Combo'[Activity End Date] >= MinDate && 'Combo'[Activity Start Date] <= MaxDate ) ) return COUNTROWS( INTERSECT( tab, VALUES(Combo[activities]) ) )Filter activities column by Measure:
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi angieleman ,
Please try to delete the relationship between Dates and Combo table. Then create measure.
Measure =
var MinDate = MIN(Dates[FirstofMonth])
var MaxDate = MAX(Dates[LastofMonth])
var tab =
CALCULATETABLE(
VALUES(Combo[activities]),
FILTER(
'Combo',
'Combo'[Activity End Date] >= MinDate
&& 'Combo'[Activity Start Date] <= MaxDate
)
)
return COUNTROWS( INTERSECT( tab, VALUES(Combo[activities]) ) )
Filter activities column by Measure:
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Winniz, I'm sure that would work and its nice to have options. I ended up creating this measure: