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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
YASHASHRI
Helper I
Helper I

how to assign products to specific ID/OPP Name

Hi,
I am facing one scenario where i have following data.

Opp Number Products
111TV 
112Smartphone 
113Tablet
111Smartphone 
111Refrigerator 
112Camera


And I want this result

Opp NameSolution
111TV, Smartphone, Refrigerator 
112Smartphone, Camera
113Tablet


In short all the products that a specific OPP Name took should be assigned in above format.
How can we do this?
Note: OPP Name and Products coming from different table but have connect between them.

Thanks in advance.

3 REPLIES 3
YASHASHRI
Helper I
Helper I

opp number and product is in different table. and does not have direct relationship between then.
Any other solution ?

please provide with more details how do the 2 tables looks like what are the columns any common column?

eliasayyy
Memorable Member
Memorable Member

hello @YASHASHRI 

annonymous1999_0-1690542425254.png


Create a measure 

 

Opp Measure = 
VAR SelectedOpp = SELECTEDVALUE('Table'[Opp Number])
RETURN
CONCATENATEX(
    FILTER('Table', 'Table'[Opp Number] = SelectedOpp),
    'Table'[Products],
    ", "
)

 

or this measure

Opp Measure = 
CALCULATE(CONCATENATEX(
    'Table',
    'Table'[Products],
    ", "
),ALLEXCEPT('Table','Table'[Opp Number]))



annonymous1999_1-1690542465965.png


if it solved your issue please accept as solution

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.