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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Count number of days an employee was active

Hello

 

I have a data table that lists all actions taken by each employee and the dates taken. I would like to create a measure that counts the number of days within any given time period that an employee was taking any action ,and not count days where there is no action listed. For example, say I have the following data table:

 

Daily Log.JPG

 

I would like to create a visual using a measure showing number of days with actions taken (days "worked"), like this:

 

Visual.JPG

 

For some reason this one is just not clicking for me. 😞 Thanks in advance!

 

1 ACCEPTED SOLUTION
littlemojopuppy
Community Champion
Community Champion

Create a measure for days worked like this: Days Worked = DISTINCTCOUNT([DailyLog].Date)

 

Drop employee into columns on the visual, Year/Month into column and that measure into value.

View solution in original post

3 REPLIES 3
littlemojopuppy
Community Champion
Community Champion

Create a measure for days worked like this: Days Worked = DISTINCTCOUNT([DailyLog].Date)

 

Drop employee into columns on the visual, Year/Month into column and that measure into value.

Anonymous
Not applicable

I was making it wayy too hard on myself! Thank you! 🙂

De nada!  Glad I could help!  😊

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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