Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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.
User | Count |
---|---|
84 | |
76 | |
74 | |
48 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |