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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Matthias93
Helper III
Helper III

Different date sources in one slicer

Hi,

 

I'm currently working on a dashboard that gets data from 3 different SharePoint lists. I want to be able to slice my visuals according to date. However I have 3 date columns in different tables because I am using different lists. Is there a way to put all these date columns into one slicer? An example would be to just have: January, February, March,... in one slicer and that when I select the month the visuals will only show all data for the month I selected. I want to try to avoid using three different date slicers.

 

Thanks in advance,

Matt

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Matthias93,

 

You can use union function to merge these data fields to a new table and create the relationships between these fields, then use the new table as the slicer data source.

 

Sample:

 

Capture.PNG

 

formula:

Table = DISTINCT( UNION(VALUES(Sheet4[Date]),VALUES(Sheet5[Date]),VALUES(Sheet6[Date]))) 

Capture4.PNG

 

 

Capture2.PNG

 

Capture3.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

Hi @Matthias93,

 

You can use union function to merge these data fields to a new table and create the relationships between these fields, then use the new table as the slicer data source.

 

Sample:

 

Capture.PNG

 

formula:

Table = DISTINCT( UNION(VALUES(Sheet4[Date]),VALUES(Sheet5[Date]),VALUES(Sheet6[Date]))) 

Capture4.PNG

 

 

Capture2.PNG

 

Capture3.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
blopez11
Resident Rockstar
Resident Rockstar

I believe if you leverage a date table, relate it to each of your sharepoint sources using the datekey in those, then use the date from the date table in your slicers, you should be able to achieve what you want

There a many posts on creating a date table

Hope this helps,

Thank you,

 

I created the date table as you suggested, however I am not able to create the correct relationships between that table and my other ones. Can you have a look at this screenshot please?

 

Thank you,

Matt

 

Capture.PNG

Relate the date fields, not the month fields, then use the monthname field from the date table drive your slicers

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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