Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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?
2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

Refer to my blog on same lines. Check for current employee

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Greg_Deckler
Community Champion
Community Champion

I read this through a couple times and now I understand it. You can't use a column for this because columns are not dynamic. Columns are calculated at the time of data load and thus cannot be dynamic via user interaction like selecting a company. What you want is the Open Tickets measure I created here: https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364

 

Since it is a measure, it can be dynamic based upon user interaction.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

I read this through a couple times and now I understand it. You can't use a column for this because columns are not dynamic. Columns are calculated at the time of data load and thus cannot be dynamic via user interaction like selecting a company. What you want is the Open Tickets measure I created here: https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/td-p/409364

 

Since it is a measure, it can be dynamic based upon user interaction.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thank you very much for resolution. both of the answers work and I tested both and found Greg's solution has better performance.

amitchandak
Super User
Super User

Refer to my blog on same lines. Check for current employee

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.