Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculate Daily Active User

Hi,

 

I want to display a trend line of active users every day based on start and end dates. I am able to get to this displayed but I am struggled with adding a slicer to filter the company users are in.

 

here is the sample data

CompanyNameStartEnd
ABCLiam6/1/20193/1/2020
ABCNoah7/1/20192/1/2020
ABCWilliam8/1/20191/1/2020
DEFJames9/1/20193/1/2020
DEFOliver10/1/20192/1/2020
DEFBenjamin11/1/20191/1/2020
GHIElijah12/1/20193/1/2020
GHILucas1/1/20202/1/2020
GHIMason2/1/20202/1/2020
GHILogan3/1/20203/1/2020

 

I created a date table and a calculated column using: 

Active = CALCULATE(DISTINCTCOUNT(DATA[Name]),FILTER(DATA,DATA[Start]<='Date'[Date] && DATA[End]>='Date'[Date]))
 
However, I want to add a slicer to filter the company so that the trend line only displays the active users in the selected company.
 
Can someone help?

3 Replies