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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
qball2335
Frequent Visitor

Combine multiple rows into multiple columns

Hi -

  I am pretty new to power BI so what I am asking might be obvious.   But I can't find a solution.  I have found similar questions but not extact.

 

I have CSV files that are being pulled out and fed into Power BI

 

The tables in the CSV looks like this

DateClassNameMetricValue
2/10/21standardtestercount100
2/10/21standardtesterbytes222
2/10/21standardtestersize333
2/10/21standard_AAtestercount444
2/10/21standard_AAtesterbytes555
2/10/21standard_AAtestersize666
2/10/21standardsmilecount1100
2/10/21standardsmilebytes2222
2/10/21standardsmilesize3333
2/10/21standard_AAsmilecount4444
2/10/21standard_AAsmilebytes5555
2/10/21standard_AAsmilesize5666

 

What I would like this to look like is this

DateNamestandard-bytestandard-countstandard-sizestandard_AA-bytestandard_AA-countstandard_AA-size 
2/10/21tester100222333444555666 
2/10/21smile110022223333444455556666 

 

More or less, using class, metric, value in different rows and create columns based on a matching date and name.   

 

Would like these columns generated based on the data and not hard coded if possible.

 

Thanks

 

1 ACCEPTED SOLUTION
HotChilli
Community Champion
Community Champion

In Power Query, select the Class and Metric columns (use ctrl click to select both).

Right-click the column heading, choose Merge Columns. Give it a name.

Select the new column and click Pivot from the Transform menu.  Put Values in the Value section

View solution in original post

2 REPLIES 2
HotChilli
Community Champion
Community Champion

In Power Query, select the Class and Metric columns (use ctrl click to select both).

Right-click the column heading, choose Merge Columns. Give it a name.

Select the new column and click Pivot from the Transform menu.  Put Values in the Value section

Thank you...that is what I needed!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.