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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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