0 votes
1 view
in BI by (11.1k points)

How can I join multiple strings into a single string using DAX and getting the strings from several columns of a Table

For example

"I", "", "" -> "I"

"", "got", "" -> "got"

"I", "got", "" -> "I, got"

"I", "", "rhythm" -> "I, rhythm"

How can I do this?

1 Answer

0 votes
by (22.5k points)

Hi,Try using the following code:

JoinText =
    CONCATENATEX ( 
        FILTER ( Table1, LEN ( Table1[Text] ) > 0 ),
        Table1[Text],
        ", "
    )

Check out the Power BI tutorial for more reference

Get an introduction to Power Bi from the below video:

 

Related questions

0 votes
1 answer
0 votes
1 answer
asked Feb 21 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !

Categories

...