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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
randyrettig
Helper I
Helper I

Column rows to headers

Hi all,

 

I'm transforming info from a .pdf, and there is a little table on the .pdf that shows up in power query like the picture attached.

 

How can I make the values in column 1 and column 3 the headers, and then the call info in columns 2 and 4 show in the appropriate rows below?

 

randyrettig_0-1706814941284.png

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @randyrettig ,

Based on your question, here are my answers.

I think you can Transpose the table.

vyilongmsft_0-1706850582186.png

Then click on the Use First Row as Headers.

vyilongmsft_1-1706850700084.png

Use Text Filters and enter the codes.

= Table.SelectRows(#"Changed Type1", each Value.Is(Value.FromText([Total Calls]), Int32.Type))

vyilongmsft_2-1706850736782.png

Then you will see what you want.

vyilongmsft_3-1706850914882.png

 

 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

How to Get Your Question Answered Quickly 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @randyrettig ,

Based on your question, here are my answers.

I think you can Transpose the table.

vyilongmsft_0-1706850582186.png

Then click on the Use First Row as Headers.

vyilongmsft_1-1706850700084.png

Use Text Filters and enter the codes.

= Table.SelectRows(#"Changed Type1", each Value.Is(Value.FromText([Total Calls]), Int32.Type))

vyilongmsft_2-1706850736782.png

Then you will see what you want.

vyilongmsft_3-1706850914882.png

 

 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

How to Get Your Question Answered Quickly 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@randyrettig Perhaps try importing Column1 and Column2 as one query and Column3 and Column4 as another. Append the queries and perform a Transpose.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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