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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Aldimar_Junior
Frequent Visitor

Melt Rows in a table

Hi everyone, I'm pretty new to powerBI and DAX.. and I'm having some trouble trying to "melt" a table:

 

I have the following table

user.iduser.fieldCodeuser.fieldRuleuser.fieldValue
1000106689512288AHV222
1000106674512288Data Analist
1000106642512288Head Quarters

 

All I need to do is tranform the above into this:

user.idKeyRoleLocation

1000

AHV222Data AnalistHead Quarters

 

I Know what each code means, so I can name the column, but when I try doing that on PBI I get the following:

user.idKeyRoleLocation

1000

  Head Quarters
1000 Data Analist 
1000AHV222  

 

the user.id repeats and I get the values spread apart, is there anything like a "group by user.id" in PBI?

 

Can anyone give me a hand?

 

Thanks in advance!

1 ACCEPTED SOLUTION
rsbin
Community Champion
Community Champion

@Aldimar_Junior ,

Assumed you tried to "Pivot Column" in Power Query. 

This will work but first remove the user.fieldRule column

Then Pivot on the fieldCode column

rsbin_0-1666900239379.png

This is what I get, which I believe is what you are looking for.

rsbin_1-1666900305783.png

Hope you can get this to work for you.

Regards,

View solution in original post

3 REPLIES 3
Aldimar_Junior
Frequent Visitor

Oh, never mind, I mistook myself, doing lots of things at the same time... hehe, I'll give it a try, thank you

 

rsbin
Community Champion
Community Champion

@Aldimar_Junior ,

Assumed you tried to "Pivot Column" in Power Query. 

This will work but first remove the user.fieldRule column

Then Pivot on the fieldCode column

rsbin_0-1666900239379.png

This is what I get, which I believe is what you are looking for.

rsbin_1-1666900305783.png

Hope you can get this to work for you.

Regards,

I dont think this would work in my case, because my values are in different columns, not in only one like yours

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.