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

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

Reply
juhoneyighot
Helper III
Helper III

Concatenate rows from another table

Hello!

I need help in what Dax formula to use.

I have this table _Facts

CompanyLookupAccountGL
BBGBBG_84 Lumber 200100
BBGBBG_84 Lumber506510 
BBGBBG_Budz220311
BBGBBG_Budz20100
LBPLBP_Buckhanon506510

Then from Vendor3 table, I will create a measure(GL.List) to concatenate the lists of the GL for a certain company and the lookup account from _Facts table. This would be its result.

Company__AccountVendorKnownAsKeyGL.List
BBGBBG_84 Lumber20100,506510
BBGBBG_Budz220311,20100
LBPLBP_Buckhanon

506510

I already have a relationship between the _Facts Table and the Vendor3 table.

juhoneyighot_0-1732768489082.png

Hope you could help me on this.

 

Thank you.

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @juhoneyighot - you can use DAX with the CONCATENATEX function

 

create dax measure to your model as below:

GL.List =
CONCATENATEX(
    FILTER(
        _Factt,
        _Factt[Company] = SELECTEDVALUE(Vendor[Company]) &&
        _Factt[LookupAccount] = SELECTEDVALUE(Vendor[__AccountVendorKnownAsKey])
    ),
    _Factt[GL],
    ", "
)

 

 

rajendraongole1_0-1732771499803.png

rajendraongole1_1-1732771592181.png

 

 

Hope this helps.

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

4 REPLIES 4
Bibiano_Geraldo
Super User
Super User

Hi @juhoneyighot ,

Try the bellow DAX measure:

GL.List = 
CONCATENATEX(
    FILTER(
        _Facts,
        _Facts[Company] = Vendor3[Company] &&
        _Facts[LookupAccount] = Vendor3[__AccountVendorKnownAsKey]
    ),
    _Facts[GL],
    ","
)
danextian
Super User
Super User

Hi @juhoneyighot 

 

Try this:

concatenated = 
CONCATENATEX (
    FILTER (
        ALL ( FactTable ),
        FactTable[LookupAccount] = SELECTEDVALUE ( FactTable[LookupAccount] )
    ),
    [GL],
    ", "
)

danextian_1-1732772309203.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
rajendraongole1
Super User
Super User

Hi @juhoneyighot - you can use DAX with the CONCATENATEX function

 

create dax measure to your model as below:

GL.List =
CONCATENATEX(
    FILTER(
        _Factt,
        _Factt[Company] = SELECTEDVALUE(Vendor[Company]) &&
        _Factt[LookupAccount] = SELECTEDVALUE(Vendor[__AccountVendorKnownAsKey])
    ),
    _Factt[GL],
    ", "
)

 

 

rajendraongole1_0-1732771499803.png

rajendraongole1_1-1732771592181.png

 

 

Hope this helps.

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





juhoneyighot_0-1732797537983.png

@rajendraongole1 its coming back with no values in the visual

juhoneyighot_1-1732797600928.pngjuhoneyighot_2-1732797649913.png

 

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.