Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

rows to columns

Hi guys,

 

I have the following table

 

Patient#Patient NameTestSub-TestResult ValueResult UnitsInsurance
333AbhiA123mgYes
333AbhiA212U/lYes
333AbhiA321pg/mlYes
333AbhiB265flYes
534MishB123mgNo
534MishB222flNo
670JoshA335pg/mlYes
670JoshB127mgYes

 

I need to convert to the following table...

 

Patient#Patient NameABInsurance
  12312Yes
333Abhi23 mg12 U/l21 pg/mlnull65 flYes
534Mishnullnullnull23 mg22 flNo
670Joshnullnull35 pg/ml27 mg Yes
  • Are you sure you want to do that in Power Query? This would be much easier to do in the Power BI user interface.

     

     

1 Reply

  • Are you sure you want to do that in Power Query? This would be much easier to do in the Power BI user interface.