Forum Discussion
tc97
4 years agoFrequent Visitor
Measure: Rolling Active Users
Hi, I have a data table tracking employees internal moves between departments. Name Department Start Date End Date [Employee Name] [Department Name] [First Day in Department] ...
- 4 years ago
Hi,
Please try the below measure.
Create a table visualization, and add one of columns from a calendar table (year, month, week, or date column).
And then add the below measure into the table visualization.
Employees count measure: = CALCULATE ( COUNTROWS ( VALUES ( Table[Name] ) ), FILTER ( Table, Table[Start Date] <= MAX ( Calendar[Date] ) && OR ( Table[End Date] >= MIN ( Calendar[Date] ), Table[End Date] = BLANK () ) ) )
Jihwan_Kim
Super User
4 years agoHi,
Please try the below measure.
Create a table visualization, and add one of columns from a calendar table (year, month, week, or date column).
And then add the below measure into the table visualization.
Employees count measure: =
CALCULATE (
COUNTROWS ( VALUES ( Table[Name] ) ),
FILTER (
Table,
Table[Start Date] <= MAX ( Calendar[Date] )
&& OR ( Table[End Date] >= MIN ( Calendar[Date] ), Table[End Date] = BLANK () )
)
)
tc97
4 years agoFrequent Visitor
Thanks so much! Exactly what I needed.