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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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 Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.

Top Solution Authors