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
dvnnnaidu
Helper II
Helper II

How to show multiple lookup/related values in a single cell of a table

Hi,

 

I have two table as below , first one is Tasks table and second is assignment table. One task can be assigned to multiple people. We want to see data in a table visual where it shows as the requirement table.

Tasks Table

Sr.Task ID
1Task 1
2Task 2
3Task 3
4Task 4
5Task 5
  

Assignment Table

Task ID Assigned To
Task 1E1
Task 1E2
Task 2E1
Task 3 E3
Task 3 E1
Task 4E2
Task 5E2

 

Requriement

Task IDDescAssigned To
1Task 1E1, E2
2Task 2E1
3Task 3E1, E3
4Task 4E2
5Task 5E2

 

Can you please help on how to achieve the above. 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dvnnnaidu , Assuming both tables are joined

Try measure like

concatenatex(Assignment,Assignment [Assigned To],",")

 

refer: https://www.youtube.com/watch?v=du2HSEzng2E

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @dvnnnaidu,

I also think concatenatex function should suitable for your scenario. You only need to write a measure formula to use the current task to lookup correspond assign records.

Measure =
VAR taskList =
    CALCULATETABLE ( VALUE ( Tasks[Task ID] ), ALLSELECTED ( Tasks ) )
RETURN
    CONCATENATEX (
        FILTER ( ALLSELECTED ( Assignment ), [Task ID] IN taskList ),
        Assignment[Assigned To],
        ","
    )

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@dvnnnaidu , Assuming both tables are joined

Try measure like

concatenatex(Assignment,Assignment [Assigned To],",")

 

refer: https://www.youtube.com/watch?v=du2HSEzng2E

@amitchandak  thank you very much, it worked perfectly

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.