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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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