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
kersplash
Helper I
Helper I

Changing table values to headers

Hi,

 

I have a set of data that looks like the below;

ConfirmationIdAnswers.Questions.QuestionNameAnswers.TextAnswer
330478BOOKING REQUEST DATE17.01.20
330478CANDIDATE EMAIL (NC)test@GMAIL.COM
330478INVOICE TO mandatoryCANDIDATE TO POD
330478COST CODENA
330478etc....etc.....

 

I want the data to look like this below;

ConfirmationIdBOOKING REQUEST DATECANDIDATE EMAIL (NC)INVOICE TO mandatoryCOST CODEetc....
33047817.01.20test@GMAIL.COMCANDIDATE TO POD

NA

etc....

 

I need this to work for as many column names that are listed in the first table (which is more than what I've shown).

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Fortunately for you, this will still work, even on text 🙂

 

Just select your second and third column. Then do pivot, in advanced options choose MAX instead of COUNT and in your "values" column use your Answers.textanswer column.

 

Tadaaa 🙂

 

Jaap

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

Thanks for the quick reply.  I did try to pivot the column but I don't have numbers in the values column it is text data.

Anonymous
Not applicable

Fortunately for you, this will still work, even on text 🙂

 

Just select your second and third column. Then do pivot, in advanced options choose MAX instead of COUNT and in your "values" column use your Answers.textanswer column.

 

Tadaaa 🙂

 

Jaap

Perfect!

 

Thankyou all.

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.