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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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