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

Help with looking up multiple values in different columns and combining results

I am wondering what the best way would be to lookup the IDs in the middle columns below in order to return names from a UserID table stored elsewhere. I am planning on doing a combination of IF statements nested with CONCATENATE and LOOKUPVALUEs. Just wondering if there is a better way to more directly accomplish my goal. I have included an example below of what I would like for the output to look like. 

 

 

workItemIdPerform.1Perform.2Perform.3PreparerAssignments
050a6c0a-acbf-4156-9f6c-a919016da9bd209774517450nullJohn, Mike
4692d0dd-2749-4c3c-9595-a919016db06a517450nullnullJoe
1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Englisca,

 

We can use Edit Queries to get the result. Show the steps as below:

1.       Choose ‘WorkItemID’ column and use ‘Unpivot Other Columns’

2.       Merge the two queries you needed

3.       Remove the columns which are not needed

4.       Group by the workitemid to sum the value of name in UserID table

5.       Change the M language from each List.Sum([UserID.Name]) to each Text.Combine([UserID.Name],",")

 

For more information, please refer to the pbix as attached.

Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Englisca,

 

We can use Edit Queries to get the result. Show the steps as below:

1.       Choose ‘WorkItemID’ column and use ‘Unpivot Other Columns’

2.       Merge the two queries you needed

3.       Remove the columns which are not needed

4.       Group by the workitemid to sum the value of name in UserID table

5.       Change the M language from each List.Sum([UserID.Name]) to each Text.Combine([UserID.Name],",")

 

For more information, please refer to the pbix as attached.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft Awesome, thanks for the help!

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.