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
Anonymous
Not applicable

Concatenate Rows with Condition - Help Please!

From the below data set I need all of a Partner IDs active (TRUE) email addresses in one cell.

Using dax I'm very close but cannot figure out how to add the condition to output only 'TRUE' (active) emails from the enabled column.  (shown in wanted results table below).

Here is what I have so far that is outputting all of a partners emails (and my table name is 

t_b2b_na_partner_user):
= calculate(CONCATENATEX(t_b2b_na_partner_user,t_b2b_na_partner_user[EMAIL],"; "),ALLEXCEPT(t_b2b_na_partner_user,t_b2b_na_partner_user[PARTNER_ID]))
 
Any help adding the condtion of 'TRUE' from the enabled column would be amazing - THANK YOU!!

 

Current Data:

 

Partner_IDEmailEnabled
PCA00000054andrea@syoga.comTRUE
PCA00000063ahurlburt@fitness.comTRUE
PCA00000063nkeane@fitness.comFALSE
PCA0000007teginpopowich@hotmail.comTRUE
PCA0000007manager@bodymindcentre.comTRUE



Wanted Result with added Partner Emails column:

 

Partner IDEmailEnabledPartner Emails
PCA00000054andrea@syoga.comTRUEandrea@syoga.com
PCA00000063ahurlburt@fitness.comTRUEahurlburt@fitness.com
PCA00000063nkeane@fitness.comFALSEahurlburt@fitness.com
PCA0000007teginpopowich@hotmail.comTRUEteginpopowich@hotmail.com & manager@bodymindcentre.com
PCA0000007manager@bodymindcentre.comTRUEteginpopowich@hotmail.com & manager@bodymindcentre.com
1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

CALCULATE (
    CONCATENATEX ( t_b2b_na_partner_user, t_b2b_na_partner_user[EMAIL], "; " ),
    ALLEXCEPT ( t_b2b_na_partner_user, t_b2b_na_partner_user[PARTNER_ID] ),
    t_b2b_na_partner_user[enabled] = "TRUE"
)

where it's assumed that [enabled] is if type text. If it's boolean use  = TRUE( ) for the comparison

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@AlB - this solved it!! My data is text and "TRUE" worked great - thanks so much

AlB
Community Champion
Community Champion

Hi @Anonymous 

CALCULATE (
    CONCATENATEX ( t_b2b_na_partner_user, t_b2b_na_partner_user[EMAIL], "; " ),
    ALLEXCEPT ( t_b2b_na_partner_user, t_b2b_na_partner_user[PARTNER_ID] ),
    t_b2b_na_partner_user[enabled] = "TRUE"
)

where it's assumed that [enabled] is if type text. If it's boolean use  = TRUE( ) for the comparison

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

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.

Top Solution Authors
Top Kudoed Authors