Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

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!

6 Replies

  • Ragnarock1982's avatar
    Ragnarock1982
    Frequent Visitor

    Hi,

     

    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. :smileyhappy:

    • Anonymous's avatar
      Anonymous
      Not applicable

      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's avatar
        Ragnarock1982
        Frequent Visitor

        Hi Anonymous , 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 :smileyvery-happy:

         

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