Forum Discussion

szub's avatar
szub
Icon for Helper III rankHelper III
4 years ago
Solved

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      
  • Anonymous's avatar
    Anonymous
    4 years ago

    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)...

    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

2 Replies

  • 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.

  • Anonymous's avatar
    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)...

    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