cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shakaze
Frequent Visitor

Merge two dates columns in a single slicer

Hello everyone,

 

I'm currently working on creating a dashboard with contracts' datas.

 

However i'm stuck on the date part.

 

I have 2 columns : StartDate and EndDate which are dates of contracts.

 

At the moment, I have 2 slicers and my goal is to have only one where users could just select when the slicer starts and where it ends (and so the contracts).

 

I have tried to create a calendarauto table but i simply cannot create what i really want.

 

If you guys have any ideas !

 

Thank you

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Shakaze ,

 

You can create a calendar like

calendar(Min(Min(Table[Start Date]), Min(Table[End Date])) , MAx(MAx(Table[Start Date]), MAx(Table[End Date])) )

 

Use this HR blog having similar calculation 

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

 

or the attached files

 

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Shakaze ,

 

You can create a calendar like

calendar(Min(Min(Table[Start Date]), Min(Table[End Date])) , MAx(MAx(Table[Start Date]), MAx(Table[End Date])) )

 

Use this HR blog having similar calculation 

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

 

or the attached files

 

 

Hello Amit,

 

Thank you very much, it's working perfectly ! 

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.