March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Sample data:
For example, I want to concatenate C1,C2,C3,C4 columns and I don't want to include Null values in the Output Column.
Thanks in advance.
Solved! Go to Solution.
I would do that kind of thing in the query editor, but here is a DAX column expression you can use. A virtual table is created with { }, filtered to remove blanks, and then the results are concatenated with no delimiter. Replace T1 with your actual table name.
Concat =
VAR ValuesAsTable =
FILTER ( { T1[C1], T1[C2], T1[C3], T1[C4] }, [Value] <> "" )
RETURN
CONCATENATEX ( ValuesAsTable, [Value], "" )
Pat
I would do that kind of thing in the query editor, but here is a DAX column expression you can use. A virtual table is created with { }, filtered to remove blanks, and then the results are concatenated with no delimiter. Replace T1 with your actual table name.
Concat =
VAR ValuesAsTable =
FILTER ( { T1[C1], T1[C2], T1[C3], T1[C4] }, [Value] <> "" )
RETURN
CONCATENATEX ( ValuesAsTable, [Value], "" )
Pat
You can add a new column with the code below:
Expected Output = Data[C1]&Data[C2]&Data[C3]&Data[C4]
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |