Forum Discussion

mehrsa's avatar
mehrsa
Frequent Visitor
2 years ago
Solved

Navigate between pages and filter based on ID

Hi,

I would like to navigate from one row of a table to another page and filter the second page based on the ID of the row.

The first page has a table visual that shows the current data of products, like the following:

Product_IDProduct_namePriceQuality
1appel121
2orange102
3strawberry155

Let's call it product page

On another page there is the history of these products, it is also in table visual, as follows:

DateProduct_IDProduct_namePriceQuality
1.1.20231appel113
2.1.20231appel102
3.1.20231appel122
1.1.20232orange151
2.1.20232orange101
3.1.20232orange123
4.1.20232orange102
1.1.20233strawberry184
2.1.20233strawberry155

Let's call it product_history

the product_id is the same in both reports but the datasets are different.

I want to be redirected to the product_history page when I click on the second row of the product, in this example orange, and only show the data for orange, The ID can be used because it is the same on both pages.

I think I can't use cross-page drill-through, since in drill-through both pages should use the same dataset and it can show the detail of a summarized measure. My case is different.
How can I do this navigation

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi mehrsa 

     

    I looked at your pbix file, you seem to put the "product_ID" in "Product_History" into "Add drill-through fields here", which causes you to not be able to drill through.

     

     

    Please try putting the "Product_ID" in the "Product" into "Add drill-through fields here".

     

     

    Regards,

    Nono Chen

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

     

15 Replies

  • mehrsa's avatar
    mehrsa
    Frequent Visitor

    The Power BI version is Version: 2.124.1052.0 and I select the "Modern visual tooltip", But still drill-through doesn't appear in the right click menu

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mehrsa 

     

    I looked at your pbix file, you seem to put the "product_ID" in "Product_History" into "Add drill-through fields here", which causes you to not be able to drill through.

     

     

    Please try putting the "Product_ID" in the "Product" into "Add drill-through fields here".

     

     

    Regards,

    Nono Chen

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

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi mehrsa 

     

    I understand that you have some questions about drilling through. If there are fields associated with the two tables, so you can drill across pages.

     

     

    Here's how I gave you about drill through:

     

    Here's some dummy data

     

    “product”

     

    “product_history”

     

    Create visuals on different pages

     

     

    Put "Product_ID" in "product" into "Add drill-through fields here"

     

     

    This way you can select the product in Page 1 and drill through to Page 2

     

    If you want to go back to Page 1, you can use this button, this button will appear when you choose to open "Cross-report".

     

    If you want to know more details, you can check out the link below:

    Set up drillthrough in Power BI reports - Power BI | Microsoft Learn

     

    Best Regards,

    Nono Chen

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

     

     

    • mehrsa's avatar
      mehrsa
      Frequent Visitor

      Hi Nono,

      Does the right click that shows the drill-through work on the desktop?

       

      because drill-throughs don't show to me. when I right-click, the following menu appears:

       

      • saud968's avatar
        saud968
        Icon for Memorable Member rankMemorable Member

        Your page 2 go to Page Information Check what have you selected drill through when as a "Category" or "Summarized" Based on your selection you will see drill through. 


        If this helps accept as a solution

  • mehrsa's avatar
    mehrsa
    Frequent Visitor

    I deleted the pages and recreated them again, but I still don't have the drill-through option in my menu.

     

  • mehrsa's avatar
    mehrsa
    Frequent Visitor

    I noticed that the following option "Apply drill down filter to" is diable:

     

  • mehrsa's avatar
    mehrsa
    Frequent Visitor

    The drill-through only works when I create both pages based on the same table (data source).
    In my example, I want to create two pages based on different tables, where one column is the same in both tables.
    Does anyone have any ideas?

    • saud968's avatar
      saud968
      Icon for Memorable Member rankMemorable Member

      Hi check this PBIX file - https://github.com/saud968/Drill-through/blob/main/Drill%20through2.pbix

      This will give you clarity. You can create the table visual from different tables, however, you have to pull drill-through data from the other table. 


      Best Regards

      Saud Ansari

      If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!