You can refer to the following example.
The sample table is a date table
Create two columns in the date table
Count = var _filter=COUNTROWS(FILTER('Table',[Date]>=[WarrantyStart]&&[Date]<=[WarrantyEnd]))
machines in warranty = var _fliter=FILTER('Table',[Date]>=[WarrantyStart]&&[Date]<=[WarrantyEnd])
return CONCATENATEX(_fliter,[Machine ],",")
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.