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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Dalton948
Frequent Visitor

Single Date Filter for multiple Tables that do no relate.

I have 6 Tables each with completely different data and the only thing i want to filter on between them is the date to get a snap shot of statistics for a current time period.


I tried copying the date column and simplifying its date format and then relating on that but that did not seem to be the answer.

Dalton948_0-1712540508611.png

these are the columns i need to be able to filter on.


Dalton948_1-1712540579717.png

These are the tables. I believe what i need to do is create a calendar dax formula but i haven't been able to piece it together yet. Any suggestions are welcome. End goal is to have a single slider that adjusts the metrics i have for each of these tables.





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

Hi @Dalton948 ,

If I understand you correctly, each of your tables contains a date column, and then you want to filter the data in all the tables by a date slicer.
I recommend that you add an additional Calendar table that contains all the dates covered in the other tables. Then create a relationship between this table and the other tables.
Here is my sample data:

vjunyantmsft_0-1712629119288.png

vjunyantmsft_1-1712629125422.png

vjunyantmsft_2-1712629132252.png

And I use this DAX to create the Calendar table (The date span in my sample data is 2024.1.1-2024.4.10):

Calendar Table = CALENDAR(DATE(2024, 1, 1), DATE(2024, 4, 10))

Then create relationships between these tables:

vjunyantmsft_3-1712629253748.png


Use the Calendar Table to create the slicer and the final output is as below:

vjunyantmsft_4-1712629319140.png

vjunyantmsft_5-1712629327147.png

vjunyantmsft_6-1712629336927.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-junyant-msft
Community Support
Community Support

Hi @Dalton948 ,

If I understand you correctly, each of your tables contains a date column, and then you want to filter the data in all the tables by a date slicer.
I recommend that you add an additional Calendar table that contains all the dates covered in the other tables. Then create a relationship between this table and the other tables.
Here is my sample data:

vjunyantmsft_0-1712629119288.png

vjunyantmsft_1-1712629125422.png

vjunyantmsft_2-1712629132252.png

And I use this DAX to create the Calendar table (The date span in my sample data is 2024.1.1-2024.4.10):

Calendar Table = CALENDAR(DATE(2024, 1, 1), DATE(2024, 4, 10))

Then create relationships between these tables:

vjunyantmsft_3-1712629253748.png


Use the Calendar Table to create the slicer and the final output is as below:

vjunyantmsft_4-1712629319140.png

vjunyantmsft_5-1712629327147.png

vjunyantmsft_6-1712629336927.png


Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dalton948
Frequent Visitor

Dalton948_0-1712543781006.png

this is my current work around until i figure out how to reduce it to just one slider. I was able to consolodate some of the tables in the relationships where able. Allows me to use 3 date filters instead of 6.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors