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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
uncgis
New Member

Direct Query: Move Row Values to Columns

Using a basic table in Power BI, I want to provide row level data for a group of individuals (name, address, and phone number).    However, my phone number table has a row for each phone number on file (e.g., cell and home).   I am getting my data through a direct query.  Below is an example of what I have and what I am trying to accomplish.

 

Current State

 

IDPhone_TypePhone_Numb
1235890CELL012-345-6789
1235890Home987-654-3210

 

Desired State

 

IDCELLHOME
1235890012-345-6789987-654-3210

 

Any thoughts on how this can be accomplished?  Thank you for any suggestions. 

 

Take care.

 

 

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Use a matrix visual instead of a table visual and put ID on the rows and Phone_Type on columns.

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

Use a matrix visual instead of a table visual and put ID on the rows and Phone_Type on columns.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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