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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.