This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 34 | |
| 33 | |
| 25 | |
| 24 |