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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
bullius
Helper V
Helper V

Query Editor: Field values as separate records

Hi,

 

I have data that looks like this:

 

CompanyIDOfficeAddressIDMeetingAddressIDShopAddressID
116null
2null4null
37212
4nullnull3
58915

 

I would like it to look like this:

 

CompanyIDAddressIDAddressType
11Office
16Meeting
24Meeting
37Office
32Meeting
312Shop
43Shop
58Office
59Meeting
515Shop

 

Basically, I want to turn each company's address IDs into separate records.

 

Anyone know how to do this within Query Editor?

 

Thanks!

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @bullius,

 

Select all the columns except the Company ID and do Unpivot columns the result will be as show below:

 

unpivot.png

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @bullius,

 

Select all the columns except the Company ID and do Unpivot columns the result will be as show below:

 

unpivot.png

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thanks @MFelix

 

I knew there had to be a simple solution!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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