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
EashwarBalaji
Resolver I
Resolver I

Filter table based on slicer (dropdown)

I have the following table in my PowerBI report page, and I have another table with a single column of random dates (I have added this to the page filter and as a slicer dropdown). So if i select a couple of days in that dropdown, i want my table to automatically filter the records of those days alone. Can you please help me with this?
EashwarBalaji_0-1675260105049.png 
So for example, if i select 09/02/2022 and 21/09/2022 from the following drop down filter, i want my powerBI table to automatically show only these selected records. (They are not the same columns, so i cannot just use the date in the table to build the dropdown)

EashwarBalaji_1-1675260304630.png

 

Thanks in advance!

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

Hi @EashwarBalaji ,

 

You can create a relationship between two tables, and then if you filter the selected date, dates from another table will be filtered too.

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

vstephenmsft_0-1675330161013.png

vstephenmsft_1-1675330224615.png

                                                                                                                                                         

Best Regards,

Stephen 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-stephen-msft
Community Support
Community Support

Hi @EashwarBalaji ,

 

You can create a relationship between two tables, and then if you filter the selected date, dates from another table will be filtered too.

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

vstephenmsft_0-1675330161013.png

vstephenmsft_1-1675330224615.png

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

 

Thanks for your response. This solution works. But I do have an additional question.
Is it possible for me to filter a range of dates based on the "selected date"

If selected date is 02/02/2023, i want the table to show data between 02/01/2023-01/02/2023.
i.e. One month worth of data, prior to the selected date.

Thanks

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.