power bi count rows with group by code example
Example: count rows in another table group by id number power bi
COUNTIF for Duplicate Dates =
VAR __CurrentRowID = Sales[Date]
RETURN
COUNTROWS(
FILTER(
ALL(Sales),
__CurrentRowID = Sales[Date]
)
)