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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dobregon
Impactful Individual
Impactful Individual

DAX Create Column in the table with concatenate of information from other table

Hi guys!

 

I'm trying to doing a concatenate in a column table with info (filtered) from other table grouping by an item. I have done something similar creating a measure but only with info from the same table and it is a measure. As an example i have 2 tables.

 

  1. Martkets summary
    MarketIdMarketName
    1Paris
    2Barcelona
    3London
    4Rome
  2. Products by market
    ProductidProductnameMarketidCategoryIdCategoryNameBigCategoryidBigCategoryName
    1Bike11Ground1Sports
    2Motorbike11Ground1Sports
    3Jet Bike12Water1Sports
    4Chairs13General2Furnitures
    5Tables13General2Furnitures
    5Kitchen13Kitchen2Furnitures
    6Bathroom13BathRoom2Furnitures
    7Screens14Office2Furnitures
    7Keyboard14Office2Furnitures
    7Mouses14Office2Furnitures
    1Bike21Ground1Sports
    2Motorbike21Ground1Sports
    4Chairs23General2Furnitures
    5Tables23General2Furnitures
    6Bathroom23BathRoom2Furnitures
    3Jet Bike32Water1Sports
    7Screens34Office2Furnitures
    7Keyboard34Office2Furnitures
    7Mouses34Office2Furnitures
    1Bike41Ground1Sports
    2Motorbike41Ground1Sports
    3Jet Bike42Water1Sports
    4Chairs43General2Furnitures
    5Tables43General2Furnitures

Both are linked by marketid. 

 

What i want is to create 2 columns in the markettable with the concatenate of information of the 2º table. For example the table Sport, I want to take a concatenate (using "/" between words) info from the 2º table only for the bigcategory sport, and the same for Furtinutures in another column, and i'm looking for this result

 

MarketIdMarketNameSportsFurnitures
1ParisGround/WaterGeneral/Kitchen/Bathroom/Office
2BarcelonaGroundGeneral/Bathroom
3LondonWaterOffice
4RomeGround/WaterGeneral


It could be possible?

Thanks in advance,

Kind regards!!!



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
1 ACCEPTED SOLUTION

yes.. i tried including a summarize and filters and it runs for me. so i think it is the solution

Sports= CONCATENATEX (
    SUMMARIZE (
        FILTER ( Products, Products[MarketId] = Markets[ProjectId] && Products[BigCategoryId] = 1),
        Products[CategoryName] 
    ),
    Products[CategoryName] ,
    "/"
)

 



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

You can use concatenatex

https://docs.microsoft.com/en-us/dax/concatenatex-function-dax.

 

If tables are joined. You can create desired output in table. Or You can create new table using summarize

 

https://docs.microsoft.com/en-us/dax/summarize-function-dax

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

yes.. i tried including a summarize and filters and it runs for me. so i think it is the solution

Sports= CONCATENATEX (
    SUMMARIZE (
        FILTER ( Products, Products[MarketId] = Markets[ProjectId] && Products[BigCategoryId] = 1),
        Products[CategoryName] 
    ),
    Products[CategoryName] ,
    "/"
)

 



Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors