Forum Discussion

RajeshZZ424's avatar
RajeshZZ424
Frequent Visitor
2 years ago
Solved

Need to Transform Data In Power BI

I've Imported Data from Databricks to Power BI. The data seems to look like Below.  

batchidsampleidREPLICATEIDCreateDateThicknessDryWetMixed 
B-20231006-0039S-20231009-017912023-10-0920.85NULLNULLNULL
B-20231006-0039S-20231009-017912023-10-09NULL44.3NULLNULL
B-20231006-0039S-20231009-017912023-10-09NULLNULLNULL41.85
B-20231006-0039S-20231009-017912023-10-09NULLNULL33.85NULL
B-20231006-0039S-20231009-017912023-10-0921.57NULLNULLNULL
B-20231006-0039S-20231009-017922023-10-09NULL45.09NULLNULL
B-20231006-0039S-20231009-017922023-10-0922.09NULLNULLNULL
B-20231006-0039S-20231009-017922023-10-09NULLNULL34.23NULL
B-20231006-0039S-20231009-017922023-10-09NULLNULLNULL42.44

 

If you look at the Batchid, Sample_id, createdate are same Data. it deferred with replicateID 1 and 2 . Here each value in Thickness, dry, wet, mixed is taking one for each valuea and getting remaining as NULL. I want to decrease rows. 


I want to show data in below format as below to reduce rows and for better report looking.

batchidsampleidREPLICATEIDCreateDateThicknessDryWetMixed 
B-20231006-0039S-20231009-017912023-10-0920.8544.333.8541.85
B-20231006-0039S-20231009-017912023-10-0921.57NULLNULLNULL
B-20231006-0039S-20231009-017922023-10-0922.0945.0934.2342.44

 

Any help on this is appreciated