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
jdobkows
New Member

One slicer for two tables

Hi,

 

I have two tables and I want to create one slider for time filter. It works when I create two relations between:

- Table_Sale and Table_Time on "Start date"

- Table_Purchase and Table_Time  on "Start date"

so when user filter data by "Start date" using slicer (Table_Time.Date) report works correctly, but when user want to filter by "End date" it doesn't work. System doesn't allow to create second relations between Table_Sale and Table_Time on "End date". 

Does anyone have an idea how to add passibility to create global filters on two dates (start and end date)?

 

power_bi_01.JPG

 

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @jdobkows,

 

We can create a second relation between Table_Sale and Table_Time on [End date] even there existing a relationship based on [Start date]. However, when we add Time_Table[Date] into a slicer, the filter works based on only one relationship. That is to say, we cannot neither use a signle slicer to filter start date and end date together nor dynamically filter start date and end date. For your requirement, the best choice is to create another date table, and create relationship between this new table and Table_Sale and Table_Purchase on [End date]. Then, use a second slicer to filter end date.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @jdobkows,

 

We can create a second relation between Table_Sale and Table_Time on [End date] even there existing a relationship based on [Start date]. However, when we add Time_Table[Date] into a slicer, the filter works based on only one relationship. That is to say, we cannot neither use a signle slicer to filter start date and end date together nor dynamically filter start date and end date. For your requirement, the best choice is to create another date table, and create relationship between this new table and Table_Sale and Table_Purchase on [End date]. Then, use a second slicer to filter end date.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.