Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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
asked Feb 21, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...