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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
U156531
Post Patron
Post Patron

How to combine two date slicers into one

I have two date slicers using different date columns from the same table. The user is always going to select the same date from both so I need to combine these slicers into one. What is the best method to accomplish this? 

 

Thanks

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @U156531  - Add a new calculated column to your table that combines the logic of both date columns

 

CombinedDate = YourTable[DateColumn1]

 or second approach: 


Create one seperate date table

DateTable =
CALENDAR (
MIN(YourTable[DateColumn1]),
MAX(YourTable[DateColumn2])
)

 

at relationship part , Go to Model view.
Create a relationship between DateTable[Date] and YourTable[DateColumn1].
Create another relationship between DateTable[Date] and YourTable[DateColumn2].
Add Slicer:

Add a slicer using the DateTable[Date] field.


 Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





I tried what you suggested but when I create a relationship between the  DateTable[Date] and YourTable[DateColumn1] the date hierachy seems to be eliminated.  I get the following error:

U156531_0-1716923042229.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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