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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.