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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Akshay
Regular Visitor

I need to transpose rows into columns and display primary key only ones

I have a data set like

             ID          Product

              1            A

              1            B

              1            C

              2            P

              2           Q

              2            R

 

I need it in a form like:

            ID            Col1           Col2           Col3

             1              A                 B               C

             2              P                  Q              R

 

Is there any possible way to implement this in PowerBI

 

2 REPLIES 2
mehaboob557
Resolver III
Resolver III

Hi @Akshay

 

Use matrix visual to achieve this.

 

Put the field in rows which you would like to have and another field in columns.

 

567.PNG

Thanks for the reply, but I need the above structure so that I can implement Network Directed Graph. In network directed graph I think its mandatory to have only 1 transaction(row) for each ID.

 

Thanks in advance!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors