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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
slice_dice
Frequent Visitor

Help with Concatenatex

There is a video that shows how to use Concatenatex to join multiple items that are being aggregated in a pivot table. (https://www.youtube.com/watch?v=J6yxJ2uELxQ&t=470s).

However, it seems to be specific to the OneBigTable approach to modelling.

Wondering if there is a way to do with a star schema. Here is a graphic of what I mean:

 

slice_dice_0-1724870475590.png

 

6 REPLIES 6
gmsamborn
Super User
Super User

Hi @slice_dice 

 

Would a measure like this help?

Concatenatex = 
    CONCATENATEX(
        'Sales',
        RELATED( 'Person'[Person] ),
        ", "
    )

 

Let me know if you have any questions.

 



Proud to be a Super User!

daxformatter.com makes life EASIER!
Dangar332
Super User
Super User

Hi, @slice_dice 

Try below measure

measure =
Var a = Values('Table'[Person])
return
Concatenatex(a,'Table'[Person]," ,")

Thanks @Dangar332

I tried that and the Concat is combining all values ignoring row context. It should show "Tom,Mark" for South and "Jerry" for West in instead it shows all.  Here are some screen shots

slice_dice_0-1724876226965.pngslice_dice_1-1724876260185.pngslice_dice_2-1724876308726.png

 

 

Hi, @slice_dice 

I have created measure using data you provided 

The above measure is work perfect 

Dangar332_0-1724912477805.png



You can download .PBIX file 

 

Best Regards,
Dangar

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dangar332,

Many thanks for your help on this. 
I noticed the difference between the two models is your PBIX file has a 1 to 1 relationship between Dim_Person and Facts while my has a 1 to many.

See

Here is the data model from the PBIX file

slice_dice_0-1724962093782.png

 

Here is the data mode from my power pivot model

slice_dice_1-1724962142240.png

 

I see that your got the desired result but wondering if that result is possible modelled the way I have done with a 1 to many relationship from dim_person to facts?

 

Hi, @slice_dice 

Measure = 
var a = CALCULATETABLE(VALUES(Dim_person[Person]),CROSSFILTER(Facts[FK_person],Dim_person[Key],Both))
RETURN
CONCATENATEX(a,Dim_person[Person],",")

 

Dangar332_0-1725030463786.png

 



Download below file

Best Regards,
Dangar

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.