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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Controlling 2 sets of data with one date slicer

Hi

 

Is there and an easy an smart way to be able to control/manage to sets of data with one date slicer? Det 2 sets of data have their own seperat date and data series, but I would like to be able to slice both sets with one slicer.

 

Best regards

Niels

1 ACCEPTED SOLUTION
iamdataagile
New Member

Hi,

You need a date table in your data model. You then create a relationship between the date column in your date table the date column in your data table. Do this for each of your two data tables. You can then use the date table as to filter the data in both tables. e.g. Add a the date column from the date table to the slicer. There are many ways to get a date table into your data model if you don't already have one, but perhaps the quickest is to create a new table in Power BI (New table is on the modelling ribbon) using the dax function CALENDARAUTO(). This will add a date table to your model. There's much more you can do to enhance this but basically this should do what you need. Hope that helps.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

iamdataagile
New Member

Hi,

You need a date table in your data model. You then create a relationship between the date column in your date table the date column in your data table. Do this for each of your two data tables. You can then use the date table as to filter the data in both tables. e.g. Add a the date column from the date table to the slicer. There are many ways to get a date table into your data model if you don't already have one, but perhaps the quickest is to create a new table in Power BI (New table is on the modelling ribbon) using the dax function CALENDARAUTO(). This will add a date table to your model. There's much more you can do to enhance this but basically this should do what you need. Hope that helps.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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