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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.