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
szub
Helper III
Helper III

How to convert values in multiple rows for a record into in one row for the same record

Hello,

 

I need help to see if it is possible for items that show in multiple rows for the same record to all show on one row for the same record.   Below is an example of what the data can look like:

 

ClaimCharge TypeExpense TypePart NumberApproved QtyApproved Rate
Claim1Part PartPart-A150
Claim1LaborHourly 2.565
Claim1TravelTravel, Hourly 1.550
Claim1TravelMileage 1000.5
Claim1OtherHandling 110
Claim1Part PartPart-B225
Claim1Part PartPart-C175
Claim1Part PartPart-D280
Claim2Part PartPart-E160
Claim2LaborHourly 2.565
Claim2TravelTravel, Hourly 1.550
Claim2OtherDisposal 110
Claim2Part PartPart-Z230

 

Below is what I would like to be able to do with the data

 

Claim Labor Expense TypeApproved QtyApproved RateTravel Expense TypeApproved QtyApproved RateMileage Expense TypeApproved QtyApproved RateOther Expense TypeApproved RateApproved QtyPart 1Part 1 Approved QtyPart 1 Approved RatePart 2Part 2 Approved QtyPart 2 Approved RatePart 3Part 3 Approved  QtyPart 3 Approved RatePart 4Part 4 Approved QtyPart 4 Approved Rate
Claim-1Hourly2.565Travel, Hourly1.550Mileage1000.5Handling110Part-A1$50Part-B2$25Part-C1$75Part-D2$80
Claim-2Hourly2.565Travel, Hourly1.550   Disposal110Part-E160Part-Z230      
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @szub ,

I created a sample pbix file(see attachment) for you, please check if it can be used as an alternative. (I couldn't find a suitable way to process the data to get the same visual as your second table)...

yingyinr_0-1651643778887.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @szub ,

I created a sample pbix file(see attachment) for you, please check if it can be used as an alternative. (I couldn't find a suitable way to process the data to get the same visual as your second table)...

yingyinr_0-1651643778887.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

lbendlin
Super User
Super User

Your data is already in a relatively good format. You should be able to feed that into a marix visual to get close to what your expected outcome is.

 

You may want to explain what you mean by "Part 1" , "Part 2"  etc - those are not obvious from your source data.

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.