Showing results for 
Search instead for 
Did you mean: 
cole-lehmkuhler Frequent Visitor
Frequent Visitor

One table puts multiple filters on another table

I have two tables that are in their imported form are the same exact sales table. The first table I left it exactly as it came in with the columns called: salesman, manager, sale date, product category, product #, and sales dollars. Let's just call this the "Detail Table". The second table was imported exactly as the first one was, but I grouped each salesman by sales date and product category. Let's just call this the "GroupBy Table".There is a many to many relationship between the two tables. I created table visuals in report view. Both of them, in report view, are exactly how I described them. I set the Edit Interactions so that the GroupBy Table filters the Detail Table. However, it only filters the other table for that salesman (that is the column I used for the many to many relationship between the two tables). What I would prefer it to do is to filter out for the entire row of the Group By row that I click on. I don't know if this is possible yet. Here is an example of what I mean. 


Group Table

Salesman                         Sales Date                    Product Category

Bob Smith                         1/1/2018                     Pies

Bob Smith                          1/1/2018                    Cookies

Jane Doe                             1/1/2018                    Pies

Jane Doe                             1/2/2018                    Pies


What I want is that if I clicked on the top row of the group table above, it would filter my detail table to show all of Bob Smith's sales records on 1/1/2018 in the Pies product category. Is this possible? If so how do I do this? Thanks!

Ragnarock1982 Frequent Visitor
Frequent Visitor

Re: One table puts multiple filters on another table



Not sure if I've followed you correctly, but are you wanting to 'drill down' on the second chart, based on what you click on the first?


If so, I don't think this is possible at the moment, unfortunately. I was looking for this exact thing. However, another way round this is the 'Drillthrough' function. Create another page in the report with detailed information etc. filtered by 'Salesperson'. Then when you right click the sales person on the first page, you can 'Drillthrough' to the second page and it will be filtered/drilled by just that one sales person.


Hope this helps? If I'm off track, please do let me know. Smiley Happy

cole-lehmkuhler Frequent Visitor
Frequent Visitor

Re: One table puts multiple filters on another table

@Ragnarock1982 Thanks for the response! However, I do think you misunderstood me and rereading my response I understand why. I don't have a chart at all. I'm using two table visuals. When clicking on one of the rows in the GroupBy table that I explained above it filters the Details table for all of the records for which that specific salesman had sales. Here is another, hopefully more clear, example:

GroupBy Table

Salesman                            Date                         Product Category

Bob Smith                          1/1/2018                             Pie

Bob Smith                           1/1/2018                           Cookies

Jane Doe                              1/1/2018                            Pie

Jane Doe                                1/1/2018                        Cookies

Bob Smith                              1/2/2018                          Pie

Bob Smith                               1/2/2018                        Cookies

Jane Doe                                 1/2/2018                          Pie

               ***And so on I think this gets the point across***

My Details Table looks like this


Salesman                Product Category                   Date              Sales Amount              Customer

Bob Smith                      Cookies                          1/1/2018                 $10                       Cookie Monster

Jane Doe                            Pie                               1/1/2018                    $5                            Joe Jackson

Jane Doe                           Cookies                          1/1/2018                  $7                         John Thompson

Bob Smith                         Pie                                  1/1/2018                  $13                         Jose Gutierrez

Jane Doe                            Pie                                  1/2/2018                 $5                          Brad Washington'

Bob Smith                         Cookies                            1/2/2018               $20                         Sarah Smith


So when I click in my GroupBy Table right now it only filters my detail table by Salesman. So if I clicked the first line (in my groupby table) it would give me all of the Bob Smith rows in my Details Table (the 1st,4th, and 6th lines in my example). However, what I want my GroupBy Table to filter for in my details table is when I click the first line (of GroupBy) to filter for all of the lines where Bob Smith made sells on 1/1/2018 in the "Pie" product category. So if I clicked the first line of my Group By table it would filter the Details table to where I would only see line 4 in my detail table (since this is the only line in my detail table where Bob Smith on the date 1/1/2018 sold something in the "Pie" product category). Let me know if I can elaborate more on this, and again thanks for the reply.

Ragnarock1982 Frequent Visitor
Frequent Visitor

Re: One table puts multiple filters on another table

Hi @cole-lehmkuhler , Gotcha!


Basically, you would need to apply 3 filters to the second table based on the click on the first table. (3 filters as there are 3 columns in the first table)


I may not have explained that right, but I do know exactly what you mean.


However, rather than clicking on a 'Line', when you are clicking on 'Bob Smith', you are filtering the page by 'Bob Smith', not the line. 'Bob Smith' is a value within your table.


Unfortunately though, I'm not aware of a way to do what you are looking for. I have a similar matrixes that I'm working with and I had to use the Drillthrough function to get this to work. Which works better than I had imaged by the way Smiley Very Happy


If anyone does give you a better idea though, please do let me know. .  Smiley Happy



cole-lehmkuhler Frequent Visitor
Frequent Visitor

Re: One table puts multiple filters on another table



See here's the odd part about it. I have a date slicer on right now, but it won't filter the date for both of the tables. If I have the date field from one table in it, it will only work for that table. If I use the date field from the other table it only works for the other table. Like I said in the first post, these were originally the same exact table when they were brought in. I just used the group by function to modify one of the tables. It has to be an issue with the relationships, but I can't figure it out. A many to many relationship is exactly what kind of relationship there is. I have cross-filter direction set to both, and I don't see why that would affect anything anyways.  Right now, I have the two tables linked by Salesman. Interestingly, if I use Salesman as my slicer, it works for both of the tables. I don't understand why the same doesn't work for date or product category.  Any tips on where to go from here would be greatly appreciated. I haven't used PowerBI in about 2 and a half years up until the beginning of this week.

cole-lehmkuhler Frequent Visitor
Frequent Visitor

Re: One table puts multiple filters on another table


Community Support Team
Community Support Team

Re: One table puts multiple filters on another table

Hi @cole-lehmkuhler

Could you share an example of your data?

I can't reproduce your problem.


As tested, if i add "Salesman", "Date" and "Product Category" from the "Details Table" in the table visual, it will show the distinct values, it groups the table by these columns.



Then click on one row, it will show rows as selected.


Best Regards


Helpful resources

Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 141 members 1,686 guests
Please welcome our newest community members: