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
mehrsa
Frequent Visitor

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

2 ACCEPTED SOLUTIONS
saud968
Responsive Resident
Responsive Resident

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!

View solution in original post

v-nuoc-msft
Community Support
Community Support

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.

 

vnuocmsft_0-1704359642532.png

 

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

 

vnuocmsft_1-1704359642540.png

 

Regards,

Nono Chen

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

15 REPLIES 15
v-nuoc-msft
Community Support
Community Support

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.

 

vnuocmsft_0-1704359642532.png

 

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

 

vnuocmsft_1-1704359642540.png

 

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
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
Responsive Resident
Responsive Resident

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!

mehrsa
Frequent Visitor

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

mehrsa_1-1704212462453.png

 

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_0-1704212225395.png

 

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

saud968
Responsive Resident
Responsive Resident

Request you to please share a demo PBIX file to review

saud968
Responsive Resident
Responsive Resident

Thank you. I deleted your page and recreated them and I can get the Drill through option

try to recreate the page

saud968
Responsive Resident
Responsive Resident

Make sure the relationship is this 

saud968_0-1704293021462.png


Make sure when you drag the product_id is from the Product Table and not the Product History

saud968_2-1704293133478.png

 

 

Best Regards

Saud Ansari

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

v-nuoc-msft
Community Support
Community Support

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.

 

vnuocmsft_0-1703820063893.png

 

Here's how I gave you about drill through:

 

Here's some dummy data

 

“product”

vnuocmsft_1-1703820071587.png

 

“product_history”

vnuocmsft_2-1703820078907.png

 

Create visuals on different pages

vnuocmsft_3-1703820101894.png

 

vnuocmsft_4-1703820108789.png

 

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

vnuocmsft_5-1703820115334.png

 

vnuocmsft_6-1703820121672.png

 

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

vnuocmsft_7-1703820129264.png

 

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".

vnuocmsft_8-1703820142033.png

 

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.

 

 

Hi Nono,

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

mehrsa_0-1703837104831.png

 

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

mehrsa_1-1703837306793.png

 

saud968
Responsive Resident
Responsive Resident

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. 

saud968_0-1703842079239.png


If this helps accept as a solution

I don't have such an option, what I have in page information is as follows:

mehrsa_0-1703865066253.png

 

I also selected the cross-report drillthrough in the options and settings, Report setting 

mehrsa_1-1703865186880.png

 

saud968
Responsive Resident
Responsive Resident

May be you should update your desktop version, also check if the below option is checked or not

Power-BI-Drill-Through-Reports-08-600x328.png

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.