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
Pooja_Mishra
Helper I
Helper I

Can anyone help me in combining two columns data into one column and one column data into one row?

Hi All,

 

I have a raw data and I need to combine two columns (Status Mapper and Ultimate Group Mapper) into one column and one column data  (Value Mapper) into one row , as shown in New Table. Can anyone please suggest how to do this.

 

Raw Data   
Status MapperUltimate Group MapperValue MapperItem Counter
PLDW+$250m1
PLDW+$250m1
PLSPG+$30m1
PLDW+$10m1
TDDWMissing numeric value1
PLSPG+$30m1
PLSPG+$250m1
TDDW-$10m1
#N/A#N/A+$250m1

 

 

New Table     
 -$10m+$10m+$30m+$250mMissing numeric value
PL 123 
TD1   1
DW11 21
SPG  21 

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

you can get what you ask by making two pivots and an append table.

 

image.png

 

 

image.png

 

image.png

 

 

View solution in original post

AllisonKennedy
Super User
Super User

I would suggest using a Matrix visual and keeping the raw data as is.
In Matrix visual:
Item Counter in Values (as SUM)
Value Mapper in Columns
Status in Rows

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
AllisonKennedy
Super User
Super User

I would suggest using a Matrix visual and keeping the raw data as is.
In Matrix visual:
Item Counter in Values (as SUM)
Value Mapper in Columns
Status in Rows

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

you can get what you ask by making two pivots and an append table.

 

image.png

 

 

image.png

 

image.png

 

 

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.

Top Solution Authors
Top Kudoed Authors