Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

Merge multiple rows

$
0
0

Hi,

 

I'm a relatively new user to PowerBI and I really find this software amazing. However, I'm kind of stuck with one issue that I need help with.

 

I have a folder as a source (with about 3000 CSV files), and everything works fine.

 

Now the issue is that some of the CSV files contain a "unique ID" multiple times, and I would like to merge them into one row. However, mostly the value of almost all attributes contain the same thing, and I only need it to merge the values of a specific attribute. (preferably the ones without a blank value)

 

UniqueID  Attr1Attr2Attr3Attr4
Unique1AAA123789 
Unique2 BBB123 789 111222333 
Unique3 BBB 123 987 222333444
Unique1 AAA123 789 444555666 
Unique4 AAA123 456 555666777 
Unique2 BBB123 789 111222333 
Unique1AAA123789444555666

 

 

 So the idea is to have for Unique1 the Attr4 mergerd

However, for Unique2 the Attr4 is the same, so should should remain also the same.

 

 So the desired result would be:

 

UniqueID  Attr1Attr2Attr3Attr4
Unique1AAA123789444555666
Unique2 BBB123 789 111222333 
Unique3 BBB 123 987 222333444
Unique4 AAA123 456 555666777 

 

 Is there any solution with PowerBI for my problem?

 

Kind regards.


Viewing all articles
Browse latest Browse all 213916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>