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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Luzadriana255
Helper II
Helper II

Join two selected values of a column with "and" in the middle

Hello dear community,

 

I am using the following Formula to join with "and" two values of a column, if both of them are selected

 

Selected order= CONCATENATEX(
    VALUES('Type'[Order]),
    'Type'[Order],
    " and ",
    'Type'[Order],
    ASC
)
 
I get the following:
"and individual and groups"
 
I do not want "and" to appear in the beginning, I just want it to appear in the middle., like this:
"individual and groups"
 
Could you please help me find a way to correct this mistake? thank you!!
 
 
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Luzadriana255 
Please try

Selected order =
CONCATENATEX (
    FILTER (
        VALUES ( 'Type'[Order] ),
        'Type'[Order] <> BLANK ()
            && 'Type'[Order] <> ""
    ),
    'Type'[Order],
    " and ",
    'Type'[Order], ASC
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Luzadriana255 
Please try

Selected order =
CONCATENATEX (
    FILTER (
        VALUES ( 'Type'[Order] ),
        'Type'[Order] <> BLANK ()
            && 'Type'[Order] <> ""
    ),
    'Type'[Order],
    " and ",
    'Type'[Order], ASC
)

Thank you so much @tamerj1  it works perfectly!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.