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
MeBlank
New Member

Merge 3 column into 1 row

Hi all,

 

I am new to Power BI and in need of help. I have a set of data which i would like to like to merge them into 1 column with multiple rows.

 

 

Name       Rank        ID             Score

ABC           2            123            95

DEF           5             456            56

 

 

I would like it to be:

Name     Score
ABC         

2               95                                          ROW 1

123

--------------------------------------------------------------------

DEF

5              56                                           ROW 2

456

--------------------------------------------------------------------

 

I need the data to be presented in such in dashboard actually. But I can't make it work. 

I'm not sure if this is doable. Need some advice. 

Thanks guys.

 

1 ACCEPTED SOLUTION
Eric_Zhang
Employee
Employee


@MeBlank wrote:

Hi all,

 

I am new to Power BI and in need of help. I have a set of data which i would like to like to merge them into 1 column with multiple rows.

 

 

Name       Rank        ID             Score

ABC           2            123            95

DEF           5             456            56

 

 

I would like it to be:

Name     Score
ABC         

2               95                                          ROW 1

123

--------------------------------------------------------------------

DEF

5              56                                           ROW 2

456

--------------------------------------------------------------------

 

I need the data to be presented in such in dashboard actually. But I can't make it work. 

I'm not sure if this is doable. Need some advice. 

Thanks guys.

 


@MeBlank

In Power BI, the doable equivalent would be creating a calculate column as below.

Name_ = Table1[Name]&CONCATENATE("_",Table1[Rank])&CONCATENATE("_",Table1[ID])

Capture.PNG

 

Capture2.PNG

View solution in original post

3 REPLIES 3
Eric_Zhang
Employee
Employee


@MeBlank wrote:

Hi all,

 

I am new to Power BI and in need of help. I have a set of data which i would like to like to merge them into 1 column with multiple rows.

 

 

Name       Rank        ID             Score

ABC           2            123            95

DEF           5             456            56

 

 

I would like it to be:

Name     Score
ABC         

2               95                                          ROW 1

123

--------------------------------------------------------------------

DEF

5              56                                           ROW 2

456

--------------------------------------------------------------------

 

I need the data to be presented in such in dashboard actually. But I can't make it work. 

I'm not sure if this is doable. Need some advice. 

Thanks guys.

 


@MeBlank

In Power BI, the doable equivalent would be creating a calculate column as below.

Name_ = Table1[Name]&CONCATENATE("_",Table1[Rank])&CONCATENATE("_",Table1[ID])

Capture.PNG

 

Capture2.PNG

I guess I have to go with this method. Or maybe use individual cards to display the data.

 

Thank you for the help.

CahabaData
Memorable Member
Memorable Member

well this is just thinking out loud; 

* make a dupe calculated table with just Rank, Score columns (table 2)

* delete Score column from table 1

* transform table 1 to single column 

* join table 2 to transformed table 1 on Rank field

 

 

www.CahabaData.com

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.