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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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