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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors