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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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