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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
grggmrtn
Post Patron
Post Patron

Filtering/showing dates BETWEEN two dates in the table

In my data I have something that looks like the following:

PersonIDServiceStartDateStopDate
1Something01-01-201831-12-2020
2Something05-06-201726-11-2018

 

What I've been doing until now is creating a seperate Date column and going with 1 row for each day between StartDate and StopDate, but I'm already dealing with 4+MILLION rows, so this is getting ridiculous, even though it works (but takes about 30 minutes to update).

 

I need to do several things with these dates:

Create a chart that will show me how many PersonID had an active service per month (or whatever)

Create a date slicer that will show me how many PersonID had an active service on that particular date

Create a card that will show me how many PersonID have an active service today

 

I'd really like to do this without having to create that Date column, but is that possible at all? Some sort of slicer/filter/whatever that will do a if(SelectedDate) is BETWEEN StartDate and StopDate then return 1 or something like that?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@grggmrtn , seem very similar to my HR blog, see if that can help

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

https://www.youtube.com/watch?v=e6Y-l_JtCq4

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@grggmrtn , seem very similar to my HR blog, see if that can help

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

https://www.youtube.com/watch?v=e6Y-l_JtCq4

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

This actually looks pretty workable - thanks!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.