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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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"


Regards
Zubair

Please try my custom visuals

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"


Regards
Zubair

Please try my custom visuals
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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