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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors