Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I have 2 sheets in an excel file . Both sheets have a common column ID but have different related Line items.
My requirement is to get all the line items related to a particular ID from Sheet 2 dynamically and show it in a table visual for users to export the data.
For example:
Sheet 1 has
Sheet 2
I have to fetch all the records from Sheet 2 based on ID in a table visual.
Solved! Go to Solution.
Hi @deepali_garg ,
Yes. You can do it in the Power Query.
You also need to add an index column. Then
Merge query:
Is this what you expect?
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @deepali_garg ,
Yes. You can do it in the Power Query.
You also need to add an index column. Then
Merge query:
Is this what you expect?
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for this approach .
But is there any other way as i want to fetch multiple columns , so creating each calculated column would be a lengthy approach.
Can I use merge functionality to achieve this?
Hi @deepali_garg ,
You need to add an index column for unique identification.
Table1:
Table2:
In the Power Query:
Add the index column for Table1 and Table2.
Then create the new column in Table2:
New column:
Column = RELATED(Table1[UserName])
Column 2 = RELATED(Table1[Column1])
Column 3 = RELATED(Table1[Column2])
Table2:
Is this what you expect?
Hope this helps you.
Here is the PBIX file.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.