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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Combining 3 measures (3 columns) in one column

Hi

 

I have 3 measures: [Cover_Wk0],[Cover_Wk1],[Cover_Wk2] and I'd like to combine all of them in one column. 

 

have tried the method below but is failing stating that multiple columns cannot be convert to a scalar value.

 

Combine:=UNION (
ADDCOLUMNS ( IBPData1, "Cover_Wk0", [Cover_Wk0] ),
ADDCOLUMNS ( IBPData1, "Cover_Wk1", [Cover_Wk1] ),
ADDCOLUMNS ( IBPData1, "Cover_Wk2", [Cover_Wk2] )
)

 

Any suggestions?

 

Cheers,

 

Gilly

 

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

You could just use CONCATENATE Function to get it as below:

Combining = CONCATENATE( CONCATENATE([Measure],[Measure 2]),[Measure 3])

Result:

7.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-lili6-msft ,

 

Thank you for replying, actually I didn't stated correctly, what I need is to unpivot these 3 measures and tranpose them in one column.

 

Regards,

 

Gilly

hi, @Anonymous 

If this is what you want?

Combining = [Measure]&UNICHAR(10)&[Measure 2]&UNICHAR(10)&[Measure 3]

Result:

8.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Correct @v-lili6-msft , transpose from different columns to one column

hi, @Anonymous 

Do you want to the three measure show in different cell in a column?

If so, it couldn't achieve, for measure is based on the current row context.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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