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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
RajeshZZ424
Frequent Visitor

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 

 

1 ACCEPTED SOLUTION

7 REPLIES 7
Ahmedx
Super User
Super User

what should be the result? such

Screenshot_1.png

In Null value must be 45.09  you pointed.

explain why it should be this way and on what basis

If you see last three four rows data 

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


I need out like this because 

B-20231006-0039S-20231009-017922023-10-0922.0945.0934.2342.44

 

I will reduce the number of rows 

batch ID - 

B-20231006-0039


SampleID - S-20231009-0179

ReplicateID - 2
Createdate- 2023-10-09

pls try this

Screenshot_4.png

Idrissshatila
Super User
Super User

Hello @RajeshZZ424 ,

 

you can use group by in power query.

 

check it out https://learn.microsoft.com/en-us/power-query/group-by

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.