Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hi,
I have data that looks like this:
CompanyID | OfficeAddressID | MeetingAddressID | ShopAddressID |
1 | 1 | 6 | null |
2 | null | 4 | null |
3 | 7 | 2 | 12 |
4 | null | null | 3 |
5 | 8 | 9 | 15 |
I would like it to look like this:
CompanyID | AddressID | AddressType |
1 | 1 | Office |
1 | 6 | Meeting |
2 | 4 | Meeting |
3 | 7 | Office |
3 | 2 | Meeting |
3 | 12 | Shop |
4 | 3 | Shop |
5 | 8 | Office |
5 | 9 | Meeting |
5 | 15 | Shop |
Basically, I want to turn each company's address IDs into separate records.
Anyone know how to do this within Query Editor?
Thanks!
Solved! Go to Solution.
Hi @bullius,
Select all the columns except the Company ID and do Unpivot columns the result will be as show below:
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @bullius,
Select all the columns except the Company ID and do Unpivot columns the result will be as show below:
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |