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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors