Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Help needed to merge rows via Power Query/Power BI DAX

Happy New Year Power BI aficionados

 

So I have a data set imported into Power BI (via a database source) that looks as below:

 
Col1Col2Col3Col4Col5
Col1ValueCol2Valuenullnullnull
Col1ValuenullCol3Valuenullnull
Col1ValuenullnullCol4Valuenull
Col1ValuenullnullnullCol5Value

 

(Each 'Col1Value' value within the column Col1 is same in all the rows)

 

What I'm trying to achieve is to have a table on my Power BI report that displays this information as below (i.e. basically I want to merge all the rows and eliminate all the nulls on Col2 to Col5 so there's a single record for Col1Value. Hope that makes sense?)

 

Columns Col2, Col3, Col4 and Col5 are of type text

 

Col1Col2Col3Col4Col5
Col1ValueCol2ValueCol3ValueCol4ValueCol5Value

 

Is this possible to do this via Power Query transformations/DAX?

 

Let me know if this is unclear

 

Thanks in advance for your help

  • Hi Anonymous ,

     

    you can use Power Query with Group By

     

    Regards,

    Marcus

    Dortmund - Germany
    If I answered your question, please mark my post as solution, this will also help others.
    Please give Kudos for support.

5 Replies