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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Create table from values in another columns

Hi,

 

I have a requirement where we want to create table and columns based on the values in another column as explained below:-

 

Table1:-

ProjectName Col1      ValueForCol

Prjct1             R1C1       P1R1C1

Prjct1             R2C1       P1R2C1

Prjct2             R3C1       P2R3C1

Prjct2             R4C1       P2R4C1

 

Can someone help on this?

 

We want to create table as below:-

 

ProjectName  R1C1       R2C1       R3C1       R4C1

Prjct1              P1R1C1  P1R2C1    Null        Null

Prjct2              Null        Null          P2R3C1  P2R4C1

 

 

 

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

Using Query Editor you can pivot Col1 using ValueForCol as "Values"

 

In the advanced options select "Dont Summarize"

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous

Using Query Editor you can pivot Col1 using ValueForCol as "Values"

 

In the advanced options select "Dont Summarize"

Anonymous
Not applicable

Thanks a lot! It worked!!

 

But if we want to have pivot based on two columns value then do we have that option in Pivot?

 

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.