Forum Discussion
YoungLearning
Helper III
2 years agoGetting help with this complicated DAX question
Can someone explain to me why CountRows since the employee name will be recorded for every month he/she stays employed, and why that filter LastDate Date?
- 2 years ago
The LASTDATE filter will adjust the filter context to only return a single date. COUNTROWS then calculates the employee count for that date (month).
YoungLearning
Helper III
2 years agoYes, seems like it. But back to the original question now. Why not the Headcount[date] column, why Date[date]? This columns have a relationship.
YoungLearning
Helper III
2 years agoIt wants to count the number of employees, year, month and quarter basis. COUNTROWS definitely double count if I do it by year or quarter.
- YoungLearning2 years ago
Helper III
example data