Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
lochoad
New Member

Making a list of products contained in category

I have a very simple data structure that contains 1) the unique product id and 2) the Category this product belongs to.

 

I need to transfer this into an aggregated view of the category whose values are the unique product id's that category represents.

 

Table 1:  What I have

product IDProduct Category
10Shavers
11Scissors
12Trimmers
13Shavers
14Shavers
15Scissors


Table 2: What I need

Product CategoryContained in
Shavers10, 13, 14
Scissors11, 15
Trimmers12

 

Of course I have to do it dynamically as we keep adding products and categories so the ledger is massive. 

 

Would appreciate any help or ideas! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@lochoad , Create a measure and use in visual

 

concatenatex(Table, Table[product ID], ",")

 

Concatenatex: https://www.youtube.com/watch?v=du2HSEzng2E&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=43

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@lochoad , Create a measure and use in visual

 

concatenatex(Table, Table[product ID], ",")

 

Concatenatex: https://www.youtube.com/watch?v=du2HSEzng2E&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=43

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.